Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Justin Mclean
Hi,

And this may not do what you expect.

if (true)
trace(true);
else
// will false be traced?
trace(false);

Justin


Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Erik de Bruin
I feel an aslint application coming up...

;-)

EdB



On Wednesday, June 19, 2013, Justin Mclean wrote:

 Hi,

 And this may not do what you expect.

 if (true)
 trace(true);
 else
 // will false be traced?
 trace(false);

 Justin



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: Anyone see an issue with this code? :-)

2013-06-19 Thread Justin Mclean
Hi,

 I feel an aslint application coming up...
It exists for JS so AS shouldn't be hard :-) Flex PMD does a good job (but 
requires a little tuning) I once run it over the Flex SDK and was rather 
horrified by the results. :-)

Justin