[haXe] [js] end of function ';'

Nicolas Cannasse ncannasse at motion-twin.com
Sun Jan 28 12:38:40 CET 2007


> Hi Nicolas/list,
>  one quick question:
> 
> When I compile a .js file with haXe, I've noticed that local functions
> haven't a ';' character at the end. Eg.:
> 
> js = {}
> js.Boot = function() { }
> 
> Shouldn't be the case to have (I'm not very good in js, so probably I'm
> wrong...):
> 
> js = {};
> js.Boot = function() { };
> 
> I'm saying this because I'm using a js compact function (all in one
> line), and it complains about this.

I'll have a look but it's maybe a bit difficult since you can declare :

function(a,b,c) { ... }(1,2,3);

Nicolas



More information about the Haxe mailing list