Hi Craig,

> A partial solution to this would be named parameters and local variables. I
> know some dialects of Forth support this. Has anyone done this for AmForth?
> If so I would really like to see the code for doing this. I may attempt to
> do this on my own but I don't want to reinvent the wheel if it has already
> been done.

The current svn trunk has a file examples/locals.frt which is a small 
step on the way to have locals. I've spent some time already on this but
haven't yet found a solution for all elements that are needed. Most
troublesome is IMHO the name management. Locals need to be visible 
inside the current colon definition, need to be nestable and some more 
things.

Furthermore I want them to be a loadable module, which means that the 
core system has only a minimal tool set available to define locals, 
but does not have them always present.

The tools I think may be useful are the flexible VALUE's (TO) and the 
recognizer.

There will be no quick solution, I'm afraid ...

Matthias

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to