| : endif POSTPONE then ; immediate |
: endif POSTPONE then ; immediate |
| @end example |
@end example |
| |
|
| |
[According to Webster's New Encyclopedic Dictionary, then (adv.) has the |
| |
following meanings: ... 2b: following next after in order ... 3d: as a |
| |
necessary consequence (if you were there, then you saw them). Forth's |
| |
@code{THEN} has the meaning 2b, @code{THEN} in Pascal and many other |
| |
programming languages has the meaning 3d.] |
| |
|
| We also provide the words @code{?dup-if} and @code{?dup-not-if}, so you |
We also provide the words @code{?dup-if} and @code{?dup-not-if}, so you |
| can avoid using @code{?dup}. |
can avoid using @code{?dup}. |
| |
|
| @var{limit} is crossed. However, @code{S+LOOP} is not part of the ANS |
@var{limit} is crossed. However, @code{S+LOOP} is not part of the ANS |
| Forth standard. |
Forth standard. |
| |
|
| The @code{?DO} can be replaced by @code{DO}. @code{DO} enters the loop |
@code{?DO} can be replaced by @code{DO}. @code{DO} enters the loop even |
| even when the start and the limit value are equal. We do not recommend |
when the start and the limit value are equal. We do not recommend using |
| using @code{DO}. It will just give you maintenance troubles. |
@code{DO}. It will just give you maintenance troubles. |
| |
|
| FOR NEXT UNLOOP |
FOR NEXT UNLOOP |
| |
|