[OpenBIOS] [PATCH 7/10] Apple local variables implementation in Forth
mark.cave-ayland at siriusit.co.uk
Fri Aug 19 23:13:17 CEST 2011
On 17/08/11 07:47, Segher Boessenkool wrote:
>> Right I understand this, but I'm fairly sure there is an official spec
>> for Forth local variables somewhere.
> Standard (ISO/ANS) Forth (1994) has a LOCALS wordset, which is meant to
> build more convenient syntaxes on, not to be used directly. The various
> locals wordsets people used at that time differed too much.
> Nowadays implementations for locals have converged a bit more, and the
> upcoming Forth 201x standard will most likely include a locals wordset
> not unlike what Apple used, but slightly different syntax (and quite
> different semantics if you look deeply!)
> Gforth has similar syntax, as do many other systems.
> And, of course, local variables in Forth is an abomination that should
> be avoided -- just like ROLL etc. :-)
Now I understand. Segher - as you seem to be one of the most fluent
people in Forth out of everyone on the list - would you be willing/able
to review this particular patch?
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the OpenBIOS