[Issue 12601] Nested functions and properties increase size of struct.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 20 03:29:41 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12601

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
This is really an issue with the structs implicitly getting a context pointer
when they have no reason to own one. I think this bug is filed somewhere
already though.

As a workaround add 'static' to your C struct definition.

--


More information about the Digitalmars-d-bugs mailing list