[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 11 Jan 2010 16:27:30 -0200
> An unrelated minor bug in 5.2 (actually 5.1 has it too):
>
> S=[[]]
> T={}
> C=coroutine.create(function() end)
> print(type(S),type(T),type(C))
> print(S<T)
> print(T<T)
> print(S<C) -- error message is wrong
This bug is caused by a really dirty trick. Lua are using the third
letter of the type name to distinguish between type names.
"number" and "nil" crash on the first letter, "number" and "function"
crash on the second; but "string" and "thread" crash on the third.
(Yes, I know, this was a really dirty trick...)
-- Roberto
- References:
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Ignacio Burgueño
- Re: [ANN] Lua 5.2.0 (work1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (work1) now available, Tom N Harris
- Re: [ANN] Lua 5.2.0 (work1) now available, Nevin Flanagan
- Re: [ANN] Lua 5.2.0 (work1) now available, Tom N Harris