Function types versus arrays
Alex Buckley
Alex.Buckley at Sun.COM
Thu Feb 18 13:31:54 PST 2010
As I have said elsewhere, everything that applies to parameterized types
applies to function types. Varargs of function types will be allowed
with the same warnings (and mechanisms to turn off warnings) as varargs
of parameterized types.
Alex
Zdenek Tronicek wrote:
> Really? If arrays of function type are not allowed, you are naturally not
> allowed to use indexing on varargs:
>
> #int(int) compose(#int(int)... fns) {
> fns[0] = ... // this is not allowed
> }
>
> But you are right, this has been discussed here.
>
> Z.
More information about the lambda-dev
mailing list