If you mean my example extern function, I’m not sure if it’s anywhere close to the correct way to do it. If I have the @:generic metadata it just gives a recursive generic compilation error in Haxe, and when I remove it the end result doesn’t look like what I’d hope in C++, where it’s effectively just an argument and nothing changes.
HXDLIN( 74) testFunction(hx::ClassOf< ::testnamespace::ClassName >(),tmp,HX_("ClassName",66,96,2d,b3));
The hacky solution for now has been to just used
untyped __cpp__("functionName<ClassName>()") but that comes with a whole host of issues such as weak typing, learning the generated haxe namespaces, passing the namespace AND the class name AND the method name into the
untyped __cpp__() extern function to be string interpolated in the untyped called, and all sorts of inconveniences and potential for bugs.