Using xt's

Patrick Fitzpatrick <[email protected]> Fri, 16 Feb 2024 11:48:19 -0600
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <CA+5yqCbetj+L5gG147EbRyA29gdwE8VaymAkxpSi6mO0Y6aDfQ@mail.gmail.com>
Hi gang,
;

I haven't used execution tokens in many years (F-83 timeframe).

What I want to do is build a jump table like this:

create t 5 allot

: t1 ." t1" cr
: t2 ." t2 " cr ;

'  t1 t 0 + !
'  t2 t 1 + !

Then to execute t2, I would:
 t 1 + @ execute

Is this correct?

Tia,
-- 
Fitz
Cell: +1 (602) 803-7695
http://www.linkedin.com/in/fitzfitzpatrick