Help?

Manu turkeyman at gmail.com
Sat Aug 31 17:40:14 PDT 2013


On 31 August 2013 04:59, 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 {}
> ---
> is used as a workaround, but that may have other issues.
>

Yeah, that's no good. That certainly opens up more problems.
The point is that it is an undefined struct, and it can only be used to
type a pointer. It's pretty much impossible to extern to a lot of C code if
this doesn't work properly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130901/c0bae9d4/attachment.html>


More information about the Digitalmars-d mailing list