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.