Std.parseInt

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Std.parseInt

Ian Martins
When I upgraded to 2.08 I found a different behavior in Std.parseInt() on neko on linux..  I was upgrading from 2.06 so the change might have happened a while back.

Std.parseInt("a");

used to return 0, but now it returns null.

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Std.parseInt

Jan_Flanders
It was mentioned here:
http://haxe.1354130.n2.nabble.com/NekoVM-1-8-2-td6778703.html#a6780480
vm : fixed $int and $float - return null on invalid strings
Jan