Calypso: Direct and full interfacing to C++
Kagamin via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon May 18 05:27:34 PDT 2015
On Thursday, 14 May 2015 at 15:19:59 UTC, Elie Morisse wrote:
> - Many simple non-POD C++ classes are being mapped to D classes
> instead of structs, for example QFlags<AlignmentFlag>
> (qt5demo.d uses its alias Qt::Alignment) which is a wrapper
> around a single int but contains an overloaded assignment
> operator so is considered non-POD in C++. Same story for
> QString.
> string, vector, almost all STL types are non-POD too because
> they have base classes.
BTW how does it rely on having everything on the D side? Maybe
it's enough to have just instance size and method symbols? 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.
More information about the Digitalmars-d-announce
mailing list