lua-users home
lua-l archive

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


>  if T == "string" then return string.sub(A,1)

Despite the way it looks, string.sub(A,1) does not produce a copy of the
string A; there are no strings duplicates in Lua. The only values that can
be copied are tables.
--lhf