| Did you know ... | Search Documentation: |
| class-instances |
<-instances
contains all instances of this class that have been created since the
table was attached to the class. Note that instances of sub-classes are not
in this table. The table is maintained by the new() and free()
virtual machine operations as well as by object<-clone
and
source_sink<-object.
This table is attached using class->record_instances.
If the first argument is @on
or @default an class<-instances
table is attached. If this argument is @off
a possible associated table is detached. If the second (recursive)
argument is @on
(default), class->record_instances
will be invoked with the same arguments on all sub-classes. Thus
?- send(class(object), record_instances).
Will record the instances of all classes.
See also class->created_message
and class->freed_message.