Class allocation from tuple

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu May 21 10:37:35 PDT 2009


On Thu, May 21, 2009 at 11:13 AM, bearophile <bearophileHUGS at 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()").


More information about the Digitalmars-d-learn mailing list