Help?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Aug 30 12:06:15 PDT 2013
On 8/30/13, Johannes Pfau <nospam at example.com> wrote:
> Am Sat, 31 Aug 2013 04:09:10 +1000
> schrieb Manu <turkeyman at gmail.com>:
>
>> 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.
More information about the Digitalmars-d
mailing list