[nem-en] Params and list
Michal Moskal
michal.moskal at gmail.com
Mon Jan 29 14:50:58 CET 2007
On 1/29/07, Vladimir Reshetnikov <v.reshetnikov at gmail.com> wrote:
> I have an idea: allow to use 'params' modifier not only with arrays,
> but also with lists.
> What do you think about it?
>
> public Foo(params x : list[int]) : void { }
The problem is that it wouldn't work with other .NET languages. You
might want to write a macro, like [ListParams], that would add
"params" modifier, change the list type to array and then do the
conversion at the beginning of the function.
--
Michał
More information about the devel-en
mailing list