Hxcpp: option to not append _obj to class names?

The hxcpp output isn’t very idiomatic, because c++ and haxe don’t have the same semantics on many things.

It isn’t just about the _obj suffix, if also doesn’t use new since you need a GC allocation, and in haxe you don’t have to call the super constructor as the first instruction in a constructor, but c++ does.

Arrays are pretty special and need casting and possibly boxing for the elements.

The GC needs to be init and called.

I wouldn’t recommend using hxcpp to create a c++ library.

1 Like