lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Mar 5, 2014 at 1:59 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> > About the floating-point constants, by now what happens is that they
>> > are accepted, but they are converted to integers. Another weird thing
>> > (at least to me) is that I defined getlocaledecpoint() as '.', but the
>> > lexer is still considering ','.
>>
>> Sorry.. my fault.. I've made some confusion.. ',' is handled correctly
>> as the delimiter of values.. and the usage of floating-point constants
>> (using '.')  raises this neat error: 'malformed number' =)..
>
> Did you do that without changing the source?

Yes, just redefining LUA_NUMBER* and luai_num*.

Regards,
-- 
Lourival Vieira Neto