[Top][All Lists]

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

Re: Plist-put changes literal argument

From: Philipp Stephani
Subject: Re: Plist-put changes literal argument
Date: Sat, 5 Sep 2020 17:55:20 +0200

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

reply via email to

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