You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
For hxcpp classes not defined in namespace, e.g. ::String, ::Array and ::Dynamic, the compiler should always generate them with the :: prefix so they are fully qualified.
Rationale:
Working with godot lately and they have a C++ classgodot::String.
If we also declare a Haxe class like this:
Summary:
For hxcpp classes not defined in namespace, e.g.
::String
,::Array
and::Dynamic
, the compiler should always generate them with the::
prefix so they are fully qualified.Rationale:
Working with godot lately and they have a C++ class
godot::String
.If we also declare a Haxe class like this:
the generated c++ code will look somewhat like this:
and the c++ compiler would think that the function argument is a
godot::String
and causing c++ compilation errors.Alternatively:
All these global hxcpp class should be moved to the hx namespace to be consistent with other classes.
The text was updated successfully, but these errors were encountered: