variable ->clone_style: {recursive,reference,reference_chain,value,alien,nil}Describes the semantics with respect to cloning instance (object<-clone)
of the instance-variable relation:
- recursive
- When cloning recursively, proceed by cloning the value of this variable
recursively too (unless overruled by class
<-clone_style
of the value in the slot).
- reference
- Copy the object reference (e
.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.
- reference_chain
- The variable contains a chain with references to other objects. In the
clone, a new chain will be installed, holding all cloned objects. Used
by
text_buffer
<-editors.
- value
- Just copy the value.
- alien
- The slot contains alien data. 32 bits copy is made for it without
interpreting the data. Many classes define
class
-clone_function
for properly cloning alien data.
- nil
- Replace the value in the copy with @nil.
If the value gets cloned as an other part of the cloning process, make
the new field point to the copy. This style is used by
graphical
<-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.