lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (work1) now available

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


> Er why? Surely the straightforward code is better in every respect?
> 
> [...]
> + int t1 = ttype(p1);
> + int t2 = ttype(p2);
> + if (t1 == t2)
> + luaG_runerror(L, "attempt to compare two %s values", luaT_typenames[t1]);
> [...]
Light userdata and full userdata are different types but have the same name.
-- Roberto

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