[colorforth] Address STack
- Subject: [colorforth] Address STack
- From: Chris Walton <chris.r.walton@xxxxxxxxx>
- Date: Thu, 7 Apr 2005 20:11:56 -0700
The addressing register is one of the most elegant structures in Forth
I have seen. Whenever a Forth I use doesn't provide it, I write myself
a workaround because it makes the style of programming much easier.
I propose the idea of an Address stack, instead of a single register.
The advantage is that addresses will never be thrashed by a word
unexpectedly, as is the case too often. Of course, careful programming
can avoid this, but an address stack is much more flexible at a
negligible price (one operation on the x86).
--
Chris Walton
arke on irc.freenode.net
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com