Vocabulary syntax Syntax ( inputs -- outputs )
Inputs None
Outputs None
Word description Literal stack effect syntax. Also used by syntax words (such as
: ), typically declaring the stack effect of the word definition which follows.
Notes Useful for meta-programming with
define-declared .
Examples USING: compiler.units kernel math prettyprint random words ;
IN: scratchpad
SYMBOL: my-dynamic-word
[
my-dynamic-word 2 { [ + ] [ * ] } random curry
( x -- y ) define-declared
] with-compilation-unit
2 my-dynamic-word .4
See also Stack effect declarations Definition
This documentation was generated offline from a
load-all
image. If you want, you can also
browse the documentation from within the UI developer tools . See
the Factor website
for more information.
Factor 0.101 x86.64 (2287, heads/master-f4b0c147f7, Dec 15 2024 19:35:07)