SomeRanDev / reflaxe.CPP

An alternative C++ target for Haxe that generates dependent-less, GC-less C++17 code.
MIT License
72 stars 5 forks source link

Classes with the same name clash #29

Closed fourst4r closed 1 year ago

fourst4r commented 1 year ago

Classes with the same name but different packages will clash and only one of the classes will be compiled.

For example:

// foo/Baz.hx
package foo;
class Baz { public function new() {} }
// bar/Baz.hx
package bar;
class Baz { public function new() {} }
// Main.hx
package;
function main() {
    new foo.Baz();
    new bar.Baz();
}

This will generate a foo_Baz.cpp but there is no bar_Baz.cpp generated.

SomeRanDev commented 1 year ago

Yiiiikes, wtf. Okay, I'll try and check this out asap. Sorry for delay as always 😰

SomeRanDev commented 1 year ago

Should be fixed with Reflaxe update! https://github.com/SomeRanDev/reflaxe/commit/5faaa5f3c747323b6eb6d9c086cbb251dea50cd9