Skip to content

POSTPONE a deferred word. #184

Answered by ruv
SirWumpus asked this question in Q&A
Oct 27, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

What does it mean to POSTPONE a deferred word?

Nothing special. Same as for other user-defined words:

  • if a deferred word foo is an ordinary word, then postpone foo is equivalent to ['] foo compile,;
  • if a deferred word foo is an immediate word, then postpone foo is equivalent to ['] foo execute-compiling.

use the value of the deferred word at the time POSTPONE are applied?

Do you mean the compilation semantics of postpone or the run-time semantics that they appends?

(hypothetical example)

A standard program cannot tick exit (or, at least, execute the returned xt). Because it is not allowed to obtain the execution token of a word for which interpretation semantics are not defined b…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ruv
Comment options

@SirWumpus
Comment options

Answer selected by SirWumpus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
clarification Rationale or explanation to the Forth standard
2 participants