On 8/30/13, Johannes Pfau <[email protected]> wrote:
> Am Sat, 31 Aug 2013 04:09:10 +1000
> schrieb Manu <[email protected]>:
>
>> So should I extern(C) the forward declaration?
>
> Sometimes
> ---
> struct MyStruct {}
> ---

Yeah opaque structs have their bugs, I currently use this workaround in dlibgit:

struct MyStruct
{
    @disable this();
    @disable this(this);
}

This should be close to an opaque type, although .sizeof might still
work, so it's not 100% opaque.

Reply via email to