From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Re: Plist-put changes literal argument Date: Sun, 6 Sep 2020 11:23:56 -0400 Message-ID: References: <30E631BA-6845-43C1-AB5E-4C02C4F44780@gmail.com> <55491E0C-FFDF-43F8-853E-1CC826485D40@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6225"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Philipp Stephani Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 06 17:24:29 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEwWq-0001Xc-Fz for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 17:24:28 +0200 Original-Received: from localhost ([::1]:49778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEwWp-0003nW-HM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 11:24:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEwWO-0003lE-GA for help-gnu-emacs@gnu.org; Sun, 06 Sep 2020 11:24:00 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:41619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEwWM-0000xa-PH for help-gnu-emacs@gnu.org; Sun, 06 Sep 2020 11:24:00 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id g72so10749297qke.8 for ; Sun, 06 Sep 2020 08:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=+zUjtUC+ox8pYbwG/oHDxRkgFLnBolSn5fCcSgjmNcQ=; b=sPNovWR7WC10Z/8ADgIMKAMInPxD5+NtTDyz0a6e7mw8LAGohUdy56QZAmyQU2nU+X 1y0rCBsULhm0OJYD1XJbQjKJ7B/BdkB+zEsceLZUXxWIt2/1BGEDkZDVpOvc3rdF4K1I SKFWhFiEBqPom+cfIgLWG/VTTASB4iFa6AMH5mmLooUS7QZa45YXvnQGQ8SGwr+66RXu Y9++cfwYNLWdSJiBWMHEq+nEpJhygANcQFdSSBgz2iNTloO1Wo9vOTwxEsVCd3n+m4O0 6jv5v+6lI8wUij7MKtmCaBYLRpMd41SD5qk5cm02UlCq6ZDsAY+QqiUX0/e0Db3xNyuc q1gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=+zUjtUC+ox8pYbwG/oHDxRkgFLnBolSn5fCcSgjmNcQ=; b=XXkHJ68kmzMz5nYwVsJjKIZDuOe5NPrqMO9+tuEg2zg7uI6wuMCwRlJCsuJywtBXSu wSF0CIdxRFIzv9VQkjYcFE5njs95c5Dj/gvhD/MUHxE0t4rSHpIQf8kXnEiEf4UBDvqG drEXXQELLtIpSnBEZ8jUv1C6DAauORethydU9PKmPEivm0wKq7IzPkpfK3zPiarhGzkP W9dMUqnVJJRX5Bew3pkKKfu+uhQa/SeZvgh1wKGUYt2a8OaDLpUCeStBnj1clP9FZ1iG lVXgt/3BpBZpUDwRnd41rwYprppymWDwlg+5OjJTUJe0BefOB6ZOKcdFYCx1k2c0zCNs JTZw== X-Gm-Message-State: AOAM531ndwSmAdpLQBrkUDNjfOL4WpRrKF3eZxMVSCaysRSIGOVWSdS3 feZonYXq+NaS9r4716fiwo0= X-Google-Smtp-Source: ABdhPJxt4XFo1vM8+BiDEya/I2Lg3dUYGKkgOZTpuqGQ2NXCbkv7WATVPfE/t8+wTUfKfnHclRP5wQ== X-Received: by 2002:a37:9304:: with SMTP id v4mr15316019qkd.496.1599405837884; Sun, 06 Sep 2020 08:23:57 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:2cd2:1b8b:4611:fef6? ([2601:98a:4200:9210:2cd2:1b8b:4611:fef6]) by smtp.gmail.com with ESMTPSA id 201sm9000211qkf.103.2020.09.06.08.23.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Sep 2020 08:23:57 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=casouri@gmail.com; helo=mail-qk1-x732.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123978 Archived-At: > On Sep 5, 2020, at 11:55 AM, Philipp Stephani = wrote: >=20 > Am Do., 3. Sept. 2020 um 02:18 Uhr schrieb Yuan Fu >: >>=20 >>>=20 >>> I also tried setcar, same result. So Elisp doesn=E2=80=99t copy = arguments? >>>=20 >>> Yuan >>=20 >>=20 >> Ok, think more of it, it would be weird to make a full copy of cons = (and other non-primitive values) on function call. I wonder how do other = languages deal with this, because I never run into problems like this = (except for in Python, with its default argument values). >=20 > Most other languages don't have literals of mutable types; or, if they > do, they create a new object for each evaluation of the literal > expression. I see, that explains it. Thanks! Yuan=