start | all-pages
(does)
Traditional *Forth systems have a CREATE/DOES> pairing for
defining a word which creates a data structure and attaches an
action to be used on it. This extension adds support for a
similar functionality using a new `does` *combinator.
As an example:
:constant (n"-)
s:get/token d:create comma [ fetch process-data ] does ;