lua-users home
lua-l archive

Re: What's a Lua object? Why LUA_TBOOLEAN and LUA_TLIGHTUSERDATA and LUA_TNUMBER are not Lua objects?

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


> Strings are a bit different, because they're immutable, once created
> they can't change, they act like values although they're garbage
> collected, "a == b" returns string equality, even if these two strings
> are not the same object in the interpreter (this will only happen for
> long strings, over 32 bytes I think).
40 bytes (LUAI_MAXSHORTLEN).
-- Roberto

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