[OpenBIOS] name of current word

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Mar 31 11:05:42 CEST 2010


Stefan Reinauer wrote:

> Well, it is - to some extent:
> 
> : saymyname r@ begin cell - dup @ 1 <> while repeat cell - lfa2name type ;
> : bar saymyname cr ;
> bar
> 
> will say "bar"
> 
> But it only works reliably so far if it's very early in the word (before
> any other cells that hold "1" which is the CFA for a colon definition.

That's true. The other problem I had with earlier versions of the 
debugger that used this approach, was that as soon as a word starting 
manipulating the r-stack then everything got totally confused :(


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list