[Openmcl-devel] the value of constant `lambda-list-keywords' changed after sort/stable-sort

Pierpaolo Bernardi olopierpa at gmail.com
Mon Feb 6 03:38:47 PST 2012


On Mon, Feb 6, 2012 at 12:25, Xiaofeng Yang <n.akr.akiiya at gmail.com> wrote:
> This problem can also be found at version 1.7. If I apply `sort' to
> `lambda-list-keywords', the result is the same as below.
> Is this a bug ?

No.  LAMBDA-LIST-KEYWORDS is a constant, and SORT is a destructive
function, so you can't apply the second to the first.

Try: (SORT (COPY-LIST LAMBDA-LIST-KEYWORDS)

P.



More information about the Openmcl-devel mailing list