[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Writing Destructive Functions
- To: firstname.lastname@example.org
- Subject: Writing Destructive Functions
- From: email@example.com (Jeffrey B Kane)
- Date: Mon, 21 Sep 1992 11:30:00 -0400
I've been using LISP regularly now for about 6 months, but there is one
little point that I can't seem to find addressed in any of the "standard"
lisp books (including Steele). It is "How can you best write destructive
I want to implement something where a parameter is passed in a similar
fashion to the "var" in Pascal or "aType* aParameterPtr" in C or "aType&
aParameter" in C++. This is particular important in two areas:
lists, where I need to change the first element of the list
An example might be my own version of "adjoin" or a (delete-substring
aString :start 2 :stop 4) kind of function.