Dynamic array of pointers to opaque structs
Johan F.
jaffe1 at gmail.com
Wed Jun 5 13:46:49 PDT 2013
On Wednesday, 5 June 2013 at 20:38:08 UTC, Adam D. Ruppe wrote:
> On Wednesday, 5 June 2013 at 20:34:17 UTC, Johan F. wrote:
>> struct SDL_Texture;
>
> Just guessing here, what happens if you make that
>
> extern(C) struct SDL_Texture;
>
> ?
It doesn't change anything.
>> Also, is simply adding {} the right way of fixing it, or will
>> that possibly break something else?
>
> This shouldn't break anything since it is just adding RTTI info
> to D (opCmp, toHash, etc, are members of the D TypeInfo for
> this struct. why they are required in this case is beyond me).
> It doesn't change the actual core of the code, which are still
> just pointers.
Ok, thanks. I'll just add {} then, until the bug(?) gets fixed.
More information about the Digitalmars-d
mailing list