--- gforth/look.fs 2001/09/16 10:20:39 1.16 +++ gforth/look.fs 2002/12/13 21:20:39 1.19 @@ -35,14 +35,24 @@ decimal \ rename to discover!!! +: xt>threaded ( xt -- x ) +\G produces the threaded-code cell for the primitive xt + threading-method 0= if + @ + then ; + : (look) ( xt startlfa -- lfa flag ) - false swap - BEGIN @ dup - WHILE dup name>int - 3 pick = IF nip dup THEN - REPEAT - drop nip - dup 0<> ; + swap decompile-prim false rot + BEGIN + @ dup + WHILE + dup name>int xt>threaded + 3 pick = IF + nip dup + THEN + REPEAT + drop nip + dup 0<> ; \ !!! nicht optimal!