On Thu, May 21, 2009 at 11:13 AM, bearophile <bearophileh...@lycos.com> wrote:
> Jarrett Billingsley:
>
>> When it tries to parse
>> the type following 'new', it interprets the brackets as meaning an
>> array type,<
>
> I agree. But not even this works:
> new (ClassTuple[0]);
>
> Bye,
> bearophile

Have you tried reading the errors?

dtest.d(187): basic type expected, not ;

It's parsing the parenthesized expression as an argument to new, then
wondering where your type is (like if you were doing "new(blah)
ClassName()").

Reply via email to