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

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


Vocabulary
kernel

Inputs
classa tuple-class


Outputs
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