Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix export to only export symbols of current package. #7

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions source/defclass-star.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,14 @@
`(progn
,result
(eval-when (:compile-toplevel :load-toplevel :execute)
(export '(,@(append (when *export-class-name-p*
(list name))
*symbols-to-export*))
;; Don't try to export symbols that don't belong to *package*.
;; This can happen when inheriting from a class and
;; overriding some slot.
(export '(,@(remove-if (lambda (sym)
(not (eq (symbol-package sym) *package*)))
(append (when *export-class-name-p*
(list name))
*symbols-to-export*)))
,(package-name *package*)))
(find-class ',name nil))
result))))))
Expand Down