DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(goops.info.gz) Class Slots

Info Catalog (goops.info.gz) Instance Slots (goops.info.gz) Accessing Slots (goops.info.gz) Handling Slot Access Errors
 
 Class Slots
 -----------
 
 Slots whose allocation is per-class rather than per-instance can be
 referenced and set without needing to specify any particular instance.
 
  - procedure: class-slot-ref class slot-name
      Return the value of the slot named SLOT-NAME in class CLASS.  The
      named slot must have `#:class' or `#:each-subclass' allocation
      ( allocation Slot Options.).
 
      If there is no such slot with `#:class' or `#:each-subclass'
      allocation, `class-slot-ref' calls the `slot-missing' generic
      function with arguments CLASS and SLOT-NAME.  Otherwise, if the
      slot value is unbound, `class-slot-ref' calls the `slot-missing'
      generic function, with the same arguments.
 
  - procedure: class-slot-set! class slot-name value
      Set the value of the slot named SLOT-NAME in class CLASS to VALUE.
      The named slot must have `#:class' or `#:each-subclass'
      allocation ( allocation Slot Options.).
 
      If there is no such slot with `#:class' or `#:each-subclass'
      allocation, `class-slot-ref' calls the `slot-missing' generic
      function with arguments CLASS and SLOT-NAME.
 
Info Catalog (goops.info.gz) Instance Slots (goops.info.gz) Accessing Slots (goops.info.gz) Handling Slot Access Errors
automatically generated byinfo2html