RefCopy: table of contents
Classes | Core

RefCopy : Ref : AbstractFunction : Object

a reference to the copy of a value


A Ref instance is an object with a single slot named 'value' that serves as a holder of an object. RefCopy, in difference to Ref, returns only copies of the value when next is called. This can be useful when the original is to be kept unchanged.

see Ref for other methods.

Class Methods

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods



a = [1, 2, 3];
x = RefCopy(a);
b =;
b.put(0, 100); // modify b
a; // a is unchanged.