lua-users home
lua-l archive

Re: [ANN] Lua 5.2.3 (rc1) now available

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


Hi all.
I detected a strange error in lua5.2.2 and tried 5.2.3 with same result:
I ran the testsuite "lua-5.2.2-tests". In "literals.lua" lua errors out. I investigated the error and wrote this demonstration:
--8x-----------------------------------------------------[bug.lua]---
a = "0123456789"
b = ""
ok = true
while ok do
 local i = string.len(b)
 print(i, i-(""..i))
 assert((i-(""..i)) == 0, "string.len() result not int!")
 b = b..a
end
--8x-----------------------------------------------------------------
I am not shure its related to my Pelles-C Compiler. I already disabled all Compiler Optimisation to be save.
Where should i start looking at? Or is it a real bug?
Greetings.
Ulrich.

AltStyle によって変換されたページ (->オリジナル) /