[REBOL] Re: Functions, /local and refinements
From: g:santilli:tiscalinet:it at: 15-May-2004 20:44
On Saturday, May 15, 2004, 6:52:46 PM, you wrote:
GI> Wow. I didn't know that. My gut reaction is to agree with Gabriele
GI> about what standard style we should use but, if this is legal, it
GI> means HELP isn't interpreting things the same way the interpreter
GI> does, which should be addressed. i.e. HELP should be fixed.
The interpreter has never been doing things in any particular way.
That is, /LOCAL is just a refinement, like /ALL would, or /WITH,
etc. Carl just decided, as a convention, to use the refinement
named /LOCAL to define local words; so HELP is just following this
convention. As I said, it would make no harm to change HELP, but
I'm not really sure it would be worth it...
>> f: func [/local a] [print a]
>> f/local 1
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/