lua-users home
lua-l archive

[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