[Top][All Lists]

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

Re: sharing list structure

From: Thien-Thi Nguyen
Subject: Re: sharing list structure
Date: Fri, 25 Mar 2005 02:21:00 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Joe Corneli <address@hidden> writes:

> OK, I think I've got the idea now.  But still, I'm
> surprised that `setq' is not among the list of
> "destructive functions".  What's that about?

setq changes a symbol's value to a new value.

a symbol and its value are two different concepts.

the "destructiveness" of a function does not refer
to the binding between a symbol and its value, but
rather how the cdr of a pair is treated.

check out gnugo.el, which uses tail-pointer style
extensively.  also: reverse:nreverse::append:nconc
(more or less, pedants be damned).


reply via email to

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