You may wonder how to use this feature. Here are some usage patterns:
When you see a sequence of code occurring several times, and you can
identify a meaning, you will factor it out as a colon definition. When
you see similar colon definitions, you can factor them using
CREATE..DOES>. E.g., an assembler usually defines several words
that look very similar:
Another view of CREATE..DOES> is to consider it as a crude way to
supply a part of the parameters for a word (known as currying in
the functional language community). E.g., + needs two
parameters. Creating versions of + with one parameter fixed can
be done like this:
Please take a moment to fill out
this visitor survey You can help support this site by
visiting the advertisers that sponsor it! (only once each, though)