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

Marco Secchi loziosecchi at gmail.com
Sun Jan 28 13:19:08 CET 2007


You're right, I didn't think about that...

thanks anyway,
  Marco


Il giorno 28/gen/07, alle ore 12:38, Nicolas Cannasse ha scritto:

>> 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
>
> -- 
> haXe - an open source web programming language
> http://haxe.org




More information about the Haxe mailing list