Open utterances-bot opened 1 year ago
I don't understand what's the point of package
keyword if the package always equals the name of the folder containing the source file?
For example, I created the following structure:
src
|_inner
|_MyModule.hx
|_Main.hx
In MyModule.hx
I declared package foo;
.
Now I can't import foo.MyModule
in Main.hx
. Compiler says Type not found : foo.MyModule
.
.. well that was a fun read. Anyway it's just one line I can live with it.
Module Sub-Types - Haxe - The Cross-platform Toolkit
Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
https://haxe.org/manual/type-system-module-sub-types.html