Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In system.lisp, definition of defstruct-exported is wrong. #1

Open
crlf0710 opened this issue Nov 18, 2011 · 1 comment
Open

In system.lisp, definition of defstruct-exported is wrong. #1

crlf0710 opened this issue Nov 18, 2011 · 1 comment

Comments

@crlf0710
Copy link

According to CLHS, defstruct doesn't have the "superclasses" parameter.

@crlf0710
Copy link
Author

diff src2/system.lisp src/system.lisp
59c59,64
<   (let ((struct (gensym)))  
---
>   (let ((struct (gensym))
>   structname)
>     (if (atom options)
>   (setf structname options)
>   (loop for option in options
>        do (if (atom option) (setf structname option))))
63c68
<        (let ((,struct (defstruct ,structname ,superclasses ,slots ,@options)))
---
>        (let ((,struct (defstruct ,options ,@slots)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant