lua-users home
lua-l archive

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


Quoting jason bright <jaybright@gmail.com>:
> "type(myVar)" returns a string -- which is correct, but doing lots of
> string
> compares seems very inefficient (I need to argument check on some heavily
> used functions).

in Lua all equal strings are the same, so a string comparison is just a pointer 
comparison

------
Javier