Allocating a fixed-size array on the heap

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Jan 31 05:55:34 PST 2008


"Janice Caron" <caron800 at googlemail.com> wrote in message 
news:mailman.47.1201766463.5260.digitalmars-d at puremagic.com...

> I guess you could always do
>
>    struct FixedSizeArray(T,uint N) { T[N] array; }
>    float[4]* c = &(new FixedSizeArray!(float,4)()).array;
>
> ?

Come _on_!  You really need to start reading my posts the whole way through! 





More information about the Digitalmars-d mailing list