Digest #315 2025-08-27

Contributions

[410] 2025-08-26 12:27:16 EricBlake wrote:

testcase - Suggested test for repeated use

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

[r1522] 2025-08-26 11:32:45 AntonErtl replies:

comment - Ambiguous conditions

The wording of the specification seems clear to me. Toggling does not implement this specification.