In gforth 0.5.0 I did
: xt>string ( xt -- addr length ) look IF name>string THEN ;
' 0= xt>string cr type
0= ok
This worked fine (at least in all situations that I used it).
But In 0.5.9 it fails often:
GForth 0.5.9-20021227
' words xt>string cr type
words ok
but:
' 0= xt>string cr type
*the terminal*:8: Stack underflow
' 0= xt>string cr type
^^^^
Backtrace:
$40162294 write-file
' 0= xt>string cr .s
<1> 0 ok
So how can I do xt>string ( xt -- addr length ) in 0.5.9?
(BTW: To avoid unnecessary complications let me make clear that the
word would *not* be used with application xt's produced by :NONAME
and it would be ok if it returned *any* corresponding name if the xt
does have multiple names)
Robert Epprecht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]