Read Me - Common Public License V1.0 - Copyright Notice(©)

copy


>>-copy--------------------------------------------------------><

Returns a copy of the receiver object. The copied object has the same methods as the receiver object and an equivalent set of object variables, with the same values.

Object class - copy method

myarray=.array~of("N","S","E","W")
/* Copies array myarray to array directions */
directions=myarray~copy

Note

The copy method is a "shallow copy". Only the target object is copied. Additional objects referenced by the target object are not copied. For example, copying an Array object instance only copies the array, it does not copy any of the objects stored in the array.

Read Me - Common Public License V1.0 - Copyright Notice(©)