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

Xiaofeng Yang n.akr.akiiya at gmail.com
Mon Feb 6 03:25:50 PST 2012


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 ?

Welcome to Clozure Common Lisp Version 1.8-dev-r14962-trunk  (WindowsX8632)!
? (lisp-implementation-version)
"Version 1.8-dev-r14962-trunk  (WindowsX8632)"
? lambda-list-keywords
(&OPTIONAL &REST &AUX &KEY &ALLOW-OTHER-KEYS &BODY &ENVIRONMENT &WHOLE)
? (stable-sort lambda-list-keywords
             #'(lambda (a b)
                 (string<= (symbol-name a) (symbol-name b))))
(&ALLOW-OTHER-KEYS &AUX &BODY &ENVIRONMENT &KEY &OPTIONAL &REST &WHOLE)
? lambda-list-keywords
(&OPTIONAL &REST &WHOLE)
? (stable-sort lambda-list-keywords
             #'(lambda (a b)
                 (string<= (symbol-name a) (symbol-name b))))
(&OPTIONAL &REST &WHOLE)
?


     Best regards,
Xiaofeng Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20120206/9cca9a0c/attachment.htm>


More information about the Openmcl-devel mailing list