[haXe] JavaScript without -main
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Apr 24 22:02:09 CEST 2006
> In JavaScript (unless other languages) you can't just start your
> application (in a usual way of working) because you need to wait until
> the page started loading (or just any events).
> On the other side - when you integrate any solution then you need just
> no startpoint but classes to be included. It would be cool to define
> like "startclass" or "-class" instead of main
> that takes a certain class just to compile (its actually not necessary
> but maybe useful to have -package) in order to have a real fine output.
You can simply add the classes to the list of files, without -main :
haxe -js out.js MyClass.hx
Nicolas
More information about the Haxe
mailing list