new ( class -- tuple )
Factor handbook > The language > Objects > Tuples > Tuple constructors

Next:boa ( slots... class -- tuple )


Vocabulary
kernel

Inputs and outputs
classa tuple-class
tuplea tuple


Word description
Creates a new instance of class with all slots set to their initial values (see Tuple slot declarations).

Examples
USING: kernel prettyprint ; IN: scratchpad TUPLE: employee number name department ; employee new .
T{ employee }


Definition

GENERIC: new ( class -- tuple )


Methods