| Did you know ... | Search Documentation: |
| Send methods |
<-clone)
of the instance-variable relation:
<-clone_style
of the value in the slot)..i. do not clone
the value of the slot). If however, the value is cloned as an other part
of the cloning process, make the new field point to the copy.<-editors.-clone_function
for properly cloning alien data.<-device.
If a graphical is cloned it will be disconnected from it's device. If a
device is cloned however, all graphicals part of it will be cloned and
displayed on the clone.<-access.->initial_value
and
variable->alloc_value for details.|function->initialise.
Please note that using a normal object (e.g. size(20,5))
causes the same size instances to be shared by all individuals of this
class. In most cases one should use create(size, 20,5) to
force the creation of a new instance. See also class create.
The Prolog class compiler supports this through the following construct:
variable(size, size:=new(size(20,5)), get).
If the argument is a constant, name or int, the variable->alloc_value
is set. Otherwise special precautions are required in
class<-instance
and the variable->init_function
is set.
|function]->instance_variable.
The arguments are:
<-name)
Name of the instance variable. Instance variable names are local to a
class (though instance variables of super-classes are inherited.<-type)
The type of object that may be used to fill the instance variable (see object<->slot).<-access)
Defines implicit side-effect free methods associated with this variable.
See variable->access.<-summary)
Summary string used by the online documentation<-group)
Name of the functional group this variable belongs too.->save_in_file’:
normal Save the value according to class <-save_stylenil Save the value as if it was @nil
See also class<-save_style, object->save_in_file
and‘file
variable<-object’.
<-get