Next: , Previous: Memory Management, Up: API Reference


5.15 Objects

— Scheme Procedure: entity? obj
— C Function: scm_entity_p (obj)

Return #t if obj is an entity.

— Scheme Procedure: operator? obj
— C Function: scm_operator_p (obj)

Return #t if obj is an operator.

— Scheme Procedure: set-object-procedure! obj proc
— C Function: scm_set_object_procedure_x (obj, proc)

Set the object procedure of obj to proc. obj must be either an entity or an operator.

— Scheme Procedure: make-class-object metaclass layout
— C Function: scm_make_class_object (metaclass, layout)

Create a new class object of class metaclass, with the slot layout specified by layout.

— Scheme Procedure: make-subclass-object class layout
— C Function: scm_make_subclass_object (class, layout)

Create a subclass object of class, with the slot layout specified by layout.