Getting the class of an object
Using CLASS-OF, CLASS-NAME, TYPEP, and TYPE-OF
> (class-of my-square)
#<standard-class square>
> (class-name (class-of my-square))
SQUARE
> (typep my-square ‘square)
T
> (type-of my-square)
SQUARE
Previous slide
Next slide
Back to first slide
View graphic version