[REBOL] Re: Propagating refinements
From: sunandadh:aol at: 22-Dec-2001 17:28
Hi Gregg,
> << I think I'll stick to passing parameters as strings if they have to go
> anywhere other than the function invoked >>
>
> Hmmm. What about a block of optional refinements? Then you can just pass
> that entire block, rather than individual parameters. Sadly, the syntax
> isn't nearly as nice as using regular refinements, but it could be a very
> flexible approach for special cases.
>
That's a nice idea, and you could do the same sort of thing to pass, in
effect, a variable number of parameters to a function, e.g. the fictitious
UpLoadFiles function
UpLoadFiles [/replace /quiet /ascii] [%file1 %file2 %file3 ...]
Sunanda.