Had another 48hr game jam this weekend...

Simen Kjaeraas simen.kjaras at gmail.com
Sun Sep 1 03:15:34 PDT 2013


On Sun, 01 Sep 2013 05:53:29 +0200, Jakob Ovrum <jakobovrum at gmail.com>  
wrote:

>> Yes, we hit DMD bugs, like the one with opaque structs which required
>> extensive work-arounds.
>>   struct MyStruct;
>>   MyStruct*[] = new MyStruct*[n];
>
> I'm not sure this is a bug. How do you default initialize an array of  
> structs you don't know the .init values of?

An array of struct *pointers*. Fill it with nulls, I'd say.

-- 
Simen


More information about the Digitalmars-d mailing list