[REBOL] Re: Functions, /local and refinements
From: g:santilli:tiscalinet:it at: 15-May-2004 22:40
On Saturday, May 15, 2004, 9:31:51 PM, you wrote:
GI> Of course that makes perfect sense, but shouldn't HELP still
GI> understand that refinements coming after /local are part of the
GI> interface and display them?
It surely could; I think it's just that HELP was written with the
convention in mind; indeed, there's an:
if :item = /local [break]
which assumes that /local ends the list of arguments. I think one
could replace that with something like:
if :item = /local [args: any [find next args refinement! tail args]]
(I'm not saying the above would really work, just giving an idea).
However, as I said I wouldn't encourage using other refinements
after /local; also, maybe we could take this as a feature and use
it to create "hidden" refinements that are only used internally
and are not really part of the interface...
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/