Next: User-defined Defining Words, Previous: Anonymous Definitions, Up: Defining Words
By default, a defining word takes the name for the defined word from the input stream. Sometimes you want to supply the name from a string. You can do this with:
nextnamec-addr u – gforth “nextname”
The next defined word will have the name c-addr u; the defining word will leave the input stream alone.
s" foo" nextname create
is equivalent to:
nextname works with any defining word.