Dynamic array of pointers to opaque structs

Adam D. Ruppe destructionator at gmail.com
Wed Jun 5 13:38:07 PDT 2013


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;

?

> 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.


More information about the Digitalmars-d mailing list