Package: blocks-world

Class blocks-world:basic-block

Superclasses

common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

height
The height of the block.
name
The name of the block.
position
The position of the block.
supported-by
The block this instance has been placed onto.
width
The width of the block.

Details

The superclass of all objects in the Blocks World (not including the hand). Subclasses of the blocks-world:basic-block class characterize different kinds of objects, and have different properties.

They all have a name, given as the name slot and in the examples from the book, a global variable of that name is used to refer to them. Since this chapter is an explanation of CLOS, no specific constructor function is defined, and users may call make-instance directly.
 

Slot Access Functions

2025-09-06