Digest #315 2025-08-27
Contributions
A useful test is to ensure that IMMEDIATE always sets the immediate property of a word (even if it was previously set), rather than acting as a toggle:
T{ VARIABLE GT10 0 GT10 ! -> }T
T{ : GT11 1 GT10 ! ; IMMEDIATE IMMEDIATE -> }T \ repeated use okay
T{ GT10 @ : GT12 GT11 ; GT10 @ 2 GT10 ! GT12 GT10 @ -> 0 1 2 }T
(Separating this to its own thread for visibility, since an earlier version was buried inside a larger thread that had already been marked closed; in the process, picking names closer to what is already present in the testsuite)
Replies
The wording of the specification seems clear to me. Toggling does not implement this specification.