| Did you know ... | Search Documentation: |
| @default |
Represents default value
The constant object @default represents defaulting. @default is normally used for arguments you do not wish to specify when sending a message or creating an object. @default is also used as filler for a slot. In this case it normally means‘when this slot is needed; compute a sensible default from the environment’.
The interpretation of @default
is handled by the code that handles the arguments or attribute-value.
When too few arguments are presented to a method and the method has
defined it is willing to accept @default
(indicated by putting the type between square brackets; _[int]_ refers
to an integer or @default)
for the remaining arguments, @default
is passed for all remaining arguments. For example, the arguments to graphical->set
are _[int], [int], [int], [in]_, which makes
send(Box, set, 40, 40)
equivalent to
send(Box, set, 40, 40, @default, @default).