Sun Feb 15 19:46:01 CET 2009
Since Forth already has its local mechanisms for function composition,
adding dynamic binding (in the form of shallow binding) to implement
limited extent objects might not be such a bad idea.
The big advantage here is ease of implementation:
* It doesn't require separate namespaces (local vs. global variables)
* It can use deterministic stacks for storage (the retain/return stack).
* No indirect addressing is necessary (expensive on PIC)
There are plenty of disadvantages though, most of them boiling down to
But, for a real-time language without parameter names, this is a
really good mechanism, since it is 100% deterministic for memory