boa ( slots... class -- tuple )
Factor handbook » The language » Objects » Tuples » Tuple constructors

Prev:new ( class -- tuple )
Next:C:


Vocabulary
kernel

Inputs
slots...slot values
classa tuple-class


Outputs
tuplea tuple


Word description
Creates a new instance of class and fill in the slots from the stack, with the top-most stack element being stored in the right-most slot.

Notes
The name boa is shorthand for "by order of arguments", and "BOA constructor" is a pun on "boa constrictor".

Errors
Throws an error if the slot values do not match class declarations on slots (see Tuple slot declarations).

Definition

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


Methods