Defstruct and #s bug?
"Frode Fjeld" <[email protected]> Mon, 12 Oct 2009 15:55:58 +0200
| Newsgroups | gmane.lisp.openmcl.bugs |
|---|---|
| Message-ID | <[email protected]> |
[This is merely a FYI bug report, I'm unsure if this is the appropriate place to send it.] I confess to not having looked at the spec in detail, but I suspect this is non-conformant: > (defstruct (foo (:constructor foo-boa (c b a))) a b c) > (read-from-string (prin1-to-string (foo-boa 1 2 3))) Yields error "Can't initialize structure from (FOO :A 3 :B 2 :C 1)." I would expect the #s reader macro to be able to read a struct even when the default constructor isn't there. > (values (lisp-implementation-type) (lisp-implementation-version)) "Clozure Common Lisp" "Version 1.3-r11936 (WindowsX8632)" Regards, Frode V. Fjeld