SLOT-VALUE
Gets the value of a slot
> (slot-value my-rectangle 'width)
15
> (slot-value my-rectangle 'height)
12
> (slot-value my-square 'height)
;; error!
> (setf (slot-value my-rectangle 'height) 15)
15
> (slot-value my-rectangle 'height)
15
Previous slide
Next slide
Back to first slide
View graphic version