Allocating a fixed-size array on the heap

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Jan 30 17:06:36 PST 2008


"Don Clugston" <dac at nospam.com.au> wrote in message 
news:fnqdk0$1lei$1 at digitalmars.com...

> I don't think it's just a syntax sugar problem.
> You can write:
> alias float[4] Foo;
> Foo * c = new Foo;
>
> which generates the error message:
> Error: new can only create structs, dynamic arrays or class objects, not 
> float[4u]'s

:P  How convenient. 





More information about the Digitalmars-d mailing list