chiark / gitweb /
Major effort to plug slot-name leaks.
[sod] / src / pset-proto.lisp
index 0c133d6244265c5ef0c254cf898417c23aaaa2ef..e58a928a6c6c97e142c2be1cd47298748768d8c7 100644 (file)
@@ -45,7 +45,7 @@ (defstruct (property
             (:constructor %make-property
                           (name value
                            &key type location seenp
-                           &aux (key (property-key name)))))
+                           &aux (key (property-key name)) (%type type))))
   "A simple structure for holding a property in a property set.
 
    The main useful feature is the ability to tick off properties which have
@@ -57,10 +57,11 @@ (defstruct (property
 
   (name nil :type (or string symbol))
   (value nil :type t)
-  (type nil :type symbol)
+  (%type nil :type symbol)
   (location (file-location nil) :type file-location)
   (key nil :type symbol)
   (seenp nil :type boolean))
+(define-access-wrapper p-type p-%type)
 
 (export 'decode-property)
 (defgeneric decode-property (raw)