--- gforth/look.fs 2000/09/23 15:46:57 1.15 +++ gforth/look.fs 2002/09/14 10:59:31 1.17 @@ -26,6 +26,9 @@ \ Problems: A compiled xt via compile, might be created with noname: \ a noname: leaves now a empty name field +require stuff.fs +require environ.fs + decimal \ look 17may93jaw @@ -33,13 +36,20 @@ decimal \ rename to discover!!! : (look) ( xt startlfa -- lfa flag ) - false swap - BEGIN @ dup - WHILE dup name>int - 3 pick = IF nip dup THEN - REPEAT - drop nip - dup 0<> ; + false swap + BEGIN + @ dup + WHILE + dup name>int + threading-method 0= if + @ + then + 3 pick = IF + nip dup + THEN + REPEAT + drop nip + dup 0<> ; \ !!! nicht optimal!