Search
15:59:18
Lord_of_Life_
** NICK Lord_of_Life
17:55:33
markasoftware
How might I simplify (setf (nth (third node) to-return) (nconc (nth (third node) to-return) (list i))) ?
17:56:10
markasoftware
to-return is a list. I want to append the element i to the end of a certain sub-list of to-return
17:56:55
markasoftware
i can't just use nconc and rely on its mutation, because if (nth (third node) to-return) is null, it obviously can't modify nil.
17:58:07
pjb
markasoftware: you write an appendf modifier macro (or use one from a library, but since it's a one-liner…)
17:58:36
specbot
http://www.lispworks.com/reference/HyperSpec/Body/m_defi_2.htm
18:12:11
markasoftware
is there any reason i should use (append) instead of (nconc) as the function passed to define-modify-macro?
18:12:51
pfdietz
Safety? A common source of bugs is destructive modification of things that share structure with other things.
18:16:09
markasoftware
ah, i guess you are right that the list migh tbe stored somewhere else too
18:22:16
antonv
hi, is there a way to run a lisp in rowsell in non-standard readtable case? Like modern Allegro mode.
18:36:46
markasoftware
is the lambda-list for define-modify-macro exclusively for the purpose of limiting the number of arguments?
18:36:52
markasoftware
i.e, the names of the parameters do not matter