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

kinke <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from kinke <[email protected]> ---
(In reply to Manu from comment #2)
> I suspected the TypeInfo, but shouldn't that only contain destructor for
> classes?

Nope, it's needed to implement the `destroy(void*)` method.

> In my case, the struct is extern(C++) too, which means the D TypeInfo
> shouldn't even exist?

That seems to be a common misconception. Without D TypeInfo, you'd lose the
ability to have dynamic arrays of that extern(C++) struct, associative arrays
with that struct as key type etc. etc.

--

Reply via email to