Next: , Previous: Top, Up: Top


Introduction

sos is a Scheme object system derived from Tiny clos 1, which in turn was loosely derived from clos, the Common Lisp Object System. Its basic design and philosophy is closely related to Tiny clos, but there are differences in naming and interface.

This document is a reference manual, and as such does not attempt to teach the reader about object-oriented programming. It is assumed that you already have a passing familiarity with clos and with Scheme.

In the procedure descriptions that follow, certain argument names imply restrictions on the corresponding argument. Here is a table of those names. The parenthesised name in each entry is the name of the predicate procedure that the argument must satisfy.

class
The argument must be a class (class?).
instance
The argument must be an instance (instance?).
name
The argument must be a symbol (symbol?); sometimes this is also allowed to be #f (false?).
generic-procedure
The argument must be a generic procedure (generic-procedure?).
method
The argument must be a method (method?).
specializer
The argument must be a method specializer (specializer?).
procedure
The argument must be a procedure (procedure?).
slot
The argument must be a slot descriptor (slot-descriptor?).

Footnotes

[1] Tiny clos was written by Gregor Kiczales of Xerox parc; sos is derived from version 1.2 of Tiny clos.