xForth icon indicating copy to clipboard operation
xForth copied to clipboard

DEFER

Open larsbrinkhoff opened this issue 8 years ago • 2 comments
trafficstars

Add DEFER, IS, ACTION-OF, DEFER@, and DEFER!.

A deferred word should probably compile to a single jump instruction.

IS should work at both compile time and run time.

larsbrinkhoff avatar Sep 07 '17 08:09 larsbrinkhoff

On second thought, that wouldn't work on machines with read-only or inaccessible program memory.

larsbrinkhoff avatar Sep 10 '17 10:09 larsbrinkhoff

The problem is similar to VARIABLE : another level of indirection is required. And, of course, initialization.

TG9541 avatar Sep 11 '17 07:09 TG9541