Calypso: Direct and full interfacing to C++
Elie Morisse via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue May 19 17:20:45 PDT 2015
On Monday, 18 May 2015 at 12:27:35 UTC, Kagamin wrote:
> BTW how does it rely on having everything on the D side? Maybe
> it's enough to have just instance size and method symbols?
I'm not sure what you mean.
> But then there's problem with this inference: what if the type
> is intended to be used as a reference type and you infer it to
> be POD, and it can also flicker between POD and non-POD
> depending on defines.
This is true and it may not even be rare: turning C++11 on or off
is doing it for some Qt classes.
But there is another issue that will make me revisit their
semantics anyway, it's that C++ structs and classes shouldn't be
garbage collected because they weren't made with GC in mind and
might have weak refs. So unless someone has a better solution C++
classes will go back to manual memory management, and the plan is
while changing class and "new"'s semantics to also make all C++
classes values.
More information about the Digitalmars-d-announce
mailing list