:ALLOCATION slot option
Slots have two types of allocation:
:instance each instance gets its own slot value
:class all instances share the same slot value
(defclass triangle (basic-part)
(…
(number-of-sides :reader number-of-sides
:initform 3
:allocation :class)))
Previous slide
Next slide
Back to first slide
View graphic version