On Mon, Oct 16, 2017 at 03:44:54PM +0200, Christophe Gragnic wrote: > Because I thought that setq would store a value in the parameter var > "more permanently". > Something like: > > : (foo (need 3)) > (need 3) > -> 3 > : X > -> (need 3) # what I expected > > I thought using a let was necessary to free X afterwards, but even > using setq, X was freed: > > : (foo (need 3)) > (need 3) > -> 3 > : X > -> NIL # what really occured > > My question: which mechanism frees X of the value it was setq-ed?
I recommend to read about the concepts of "binding". It is the core of Lisp. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe