[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plist-put changes literal argument

From: Yuan Fu
Subject: Re: Plist-put changes literal argument
Date: Sun, 6 Sep 2020 11:23:56 -0400

> On Sep 5, 2020, at 11:55 AM, Philipp Stephani <> wrote:
> Am Do., 3. Sept. 2020 um 02:18 Uhr schrieb Yuan Fu < 
> <>>:
>>> I also tried setcar, same result. So Elisp doesn’t copy arguments?
>>> Yuan
>> 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).
> 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!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]