On 29/01/2008, Daniel Ehrenberg <[EMAIL PROTECTED]> wrote:
>
> On Jan 28, 2008 4:32 PM, Jorge Acereda MaciĆ” <[EMAIL PROTECTED]> wrote:
> > - Why does it use getters and setters instead of explicit words?
> > (i.e, "my-tuple-field / set-my-tuple-field" instead of "my-tuple-
> > field get / my-tuple-field set").
> >
> get and set take symbols (or any object) and look things up in a table
> of the values of dynamically scoped variables. They don't do anything
> with addresses, as the corresponding words in Forth would.
>
I would actually like it if we could access tuple slots like this. We
wouldn't necessarily use the words 'get' and 'set', since these are already
taken, but to be able to pass around a slot on the stack that can then
either be accessed or changed would sometimes be nice.
Alex
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk