Hi Karl,

> I have all of the support words in place to permit editing and  
> loading blocks of source from a serial EEPROM or ferroRAM.  The only  
> piece I'm missing is how to hook a buffer read from the block device  
> into the text stream used by the interpreter.  What is the  
> "traditional" way of doing this?  Should I modify SOURCE to read from  
> my block buffer if BLK is not 0?
> 
> I have already tried using a custom version of REFILL but I don't  
> like this solution.  It works if I type a single load command from  
> the command prompt, like this:
> 
> 5 load
> 
> but It does not work properly if I put more than one load command on  
> a command line (5 load  6 load) nor does it work if I put a load  
> command inside a block and then load that block.
> 
> All suggestions welcome!

I see two different approaches: turn source into a deferred word
to change it at runtime or write the code in a way that includes
additional code at compile time. What I do not want is to include
the BLK and friends into the core system, not everyone needs
block support for every project.

My favourite is the deferred word. The downside is probably: the
concept is new and not very widespread ;=)

Matthias

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Amforth-devel mailing list
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to