Re: What am I doing wrong with tonumber?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: What am I doing wrong with tonumber?
- From: Tim Channon <tc@...>
- Date: 2012年5月15日 17:24:43 +0100
That pretty much confirms something is wrong here Jorge, thanks.
The source is opaque, branches every which way including macros, so I'll
keep it in mind as don't trust tonumber for control logic and workaround.
On 15/05/2012 16:53, Jorge wrote:
> On mar, 2012年05月15日 at 16:36 +0100, Tim Channon wrote:
>> I don't understand what is going on here with 5.1
>> Anyone else get this?
>
> I get:
>
> 7 7
> nil aa
> nil na
> nan nan
> nil n
> nil nb
> nil v
> nil va
>
>
> $ lua -v
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> $ uname -a
> Linux fofotimol 2.6.32-40-generic #87-Ubuntu SMP Tue Mar 6 00:56:56 UTC
> 2012 x86_64 GNU/Linux
>
>
> Jorge
>
>
>