[top][index]
search for:

copy -- copy an object

copy x -- yields a copy of x.

If x is an hash table, array, list or sequence, then the elements are placed into a new copy. If x is a hash table, the copy is mutable if and only if x is.

It is not advisable to copy such things as modules and rings, for the operations which have already been installed for them will return values in the original object, rather than in the copy.

See also:

  • newClass -- copy an object, changing the class

  • [top][index]
    search for: