Next: , Previous: Slots, Up: Introspection


9.15.3 Instances

— primitive procedure: class-of value

Return the GOOPS class of any Scheme value.

— primitive procedure: instance? object

Return #t if object is any GOOPS instance, otherwise #f.

— procedure: is-a? object class

Return #t if object is an instance of class or one of its subclasses.

Implementation notes: is-a? uses class-of and class-precedence-list to obtain the class precedence list for object.