Haxe Forum > Import all classes in a package

  • Hello, I was wondering how I can make the "import" statement import all the classes within a package, sort of like what is done in Java when you do this:

    import java.awt.*;

    So I was wondering how I do that in HaXe, because I tried doing it that way (with a haxe library, of course), but it didn't work and gave me an error. If anyone has any suggestions, please comment bellow.

    Thanks!

  • I think I have the latest version of HaXe, but it still won't work.

  • Maybe I wasn't clear: this feature will be supported in Haxe version 3. Current Haxe version is 2 (precisely 2.10).

    Check above link: on the left side you can see Priority-haXe3.

  • Sorry, I forgot which version HaXe was on. Yeah, ok, I guess I'm going to have to do it the hard way in the mean time.

    Thanks

< Prev | Page 1 / 1 | Next >