GNU bug report logs -
#12314
24.2.50; `add-to-history': use `setq' with `delete'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Thu, 30 Aug 2012 23:10:01 UTC
Severity: normal
Found in version 24.2.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: drew.adams <at> oracle.com, 12314 <at> debbugs.gnu.org, cyd <at> gnu.org
> Date: Mon, 10 Sep 2012 08:59:26 -0400
>
> > See my other message: I think we are talking about 2 different
> > things. My gripe was only about using the term "destructive
> > modification", which muddies the waters without gaining anything.
>
> I don't know, to me "destructive modification" sounds like a very clear
> term explaining the general kind of danger we're up against (the kind
> that's summarized in Scheme by adding a "!" at the end of the
> identifier).
Alas, the manual itself gives no basis for such an interpretation. It
says (in two different places):
You can modify the CAR and CDR contents of a cons cell with the
primitives `setcar' and `setcdr'. We call these "destructive"
operations because they change existing list structure.
Here are some functions that rearrange lists "destructively" by
modifying the CDRs of their component cons cells. We call these
functions "destructive" because they chew up the original lists passed
to them as arguments, relinking their cons cells to form a new list that
is the returned value.
The only danger I glean from these is the "danger" of assigning any
meaning to the original list.
This bug report was last modified 12 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.