version 1.169, 2006/12/31 13:39:15
|
version 1.170, 2007/01/21 17:29:54
|
Line 275 Defining Words
|
Line 275 Defining Words
|
* Anonymous Definitions:: Definitions without names |
* Anonymous Definitions:: Definitions without names |
* Supplying names:: Passing definition names as strings |
* Supplying names:: Passing definition names as strings |
* User-defined Defining Words:: |
* User-defined Defining Words:: |
* Deferred words:: Allow forward references |
* Deferred Words:: Allow forward references |
* Aliases:: |
* Aliases:: |
|
|
User-defined Defining Words |
User-defined Defining Words |
Line 5619 Defer foo
|
Line 5619 Defer foo
|
IS foo |
IS foo |
@end example |
@end example |
|
|
Deferred words are discussed in more detail in @ref{Deferred words}. |
Deferred words are discussed in more detail in @ref{Deferred Words}. |
|
|
The current definition returns control to the calling definition when |
The current definition returns control to the calling definition when |
the end of the definition is reached or @code{EXIT} is encountered. |
the end of the definition is reached or @code{EXIT} is encountered. |
Line 5784 Defining words are used to extend Forth
|
Line 5784 Defining words are used to extend Forth
|
* Anonymous Definitions:: Definitions without names |
* Anonymous Definitions:: Definitions without names |
* Supplying names:: Passing definition names as strings |
* Supplying names:: Passing definition names as strings |
* User-defined Defining Words:: |
* User-defined Defining Words:: |
* Deferred words:: Allow forward references |
* Deferred Words:: Allow forward references |
* Aliases:: |
* Aliases:: |
@end menu |
@end menu |
|
|
Line 6121 create foo
|
Line 6121 create foo
|
@code{nextname} works with any defining word. |
@code{nextname} works with any defining word. |
|
|
|
|
@node User-defined Defining Words, Deferred words, Supplying names, Defining Words |
@node User-defined Defining Words, Deferred Words, Supplying names, Defining Words |
@subsection User-defined Defining Words |
@subsection User-defined Defining Words |
@cindex user-defined defining words |
@cindex user-defined defining words |
@cindex defining words, user-defined |
@cindex defining words, user-defined |
Line 6617 An ANS Forth implementation of @code{con
|
Line 6617 An ANS Forth implementation of @code{con
|
@file{compat/const-does.fs}. |
@file{compat/const-does.fs}. |
|
|
|
|
@node Deferred words, Aliases, User-defined Defining Words, Defining Words |
@node Deferred Words, Aliases, User-defined Defining Words, Defining Words |
@subsection Deferred words |
@subsection Deferred Words |
@cindex deferred words |
@cindex deferred words |
|
|
The defining word @code{Defer} allows you to define a word by name |
The defining word @code{Defer} allows you to define a word by name |
Line 6724 Definitions of these words (except @code
|
Line 6724 Definitions of these words (except @code
|
provided in @file{compat/defer.fs}. |
provided in @file{compat/defer.fs}. |
|
|
|
|
@node Aliases, , Deferred words, Defining Words |
@node Aliases, , Deferred Words, Defining Words |
@subsection Aliases |
@subsection Aliases |
@cindex aliases |
@cindex aliases |
|
|