Calypso: Direct and full interfacing to C++

Elie Morisse via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Feb 24 08:18:28 PST 2015


On Tuesday, 24 February 2015 at 08:44:25 UTC, Kagamin wrote:
> On Tuesday, 24 February 2015 at 08:39:39 UTC, Kelly wrote:
>> due to class value support being incomplete
>
> What about using that trick: recognize C++ classes and 
> represent them internally as structs with altered mangling - at 
> least it frees you from messing with D classes.

What about inheritance, polymorphism and virtual methods that 
aren't supported by D structs? I'm worried that it's going be a 
lot harder to reimplement everything in structs.

Atm to quickly make functions that take or return class values 
work what's missing is implicit casts between the class value 
types I added recently (the hacky TypeValueof) and the normal 
class types, and support in codegen. So it's not too far away I 
think.


More information about the Digitalmars-d-announce mailing list