Skip to content

Commit

Permalink
Don't set values of symbols in the COMMON-LISP package.
Browse files Browse the repository at this point in the history
  • Loading branch information
aplotnick committed Feb 26, 2016
1 parent ce77102 commit ded7a6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Mumble/types/creating-objects.lisp
Expand Up @@ -132,13 +132,18 @@ two elements long because there is no phrase named 'sue."
(defparameter *mumble-symbols* nil
"Names of all the objects created.")

(defparameter *bad-names* nil
"Inappropriate names for Mumble objects.")

(defun link-name-to-object (name object object-type)
"Links set:
1. value(name(object)) is set to the object
2. the mumble-symbol property of the name includes this object
3. the object is included in the list of members of the type
4. the object is in the global list *mumble-symbols*"
(unless (constantp name)
(unless (or (constantp name)
(and (eq (symbol-package name) (find-package :common-lisp))
(push name *bad-names*)))
(set name object))
(setf (name object) name)
(pushnew object (get name 'mumble-symbol))
Expand Down

0 comments on commit ded7a6f

Please sign in to comment.