Had another 48hr game jam this weekend...

Jakob Ovrum jakobovrum at gmail.com
Sun Sep 1 04:01:39 PDT 2013


On Sunday, 1 September 2013 at 10:39:15 UTC, Simen Kjaeraas wrote:
> 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.

I assumed that's the "work-around" he referred to. After testing 
I realize not even the pointers work. Yeah, that's clearly a bug.


More information about the Digitalmars-d mailing list