lua-users home
lua-l archive

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


> the string table is global and people can patch it anyway -
> the metatable just has __index=string.

What was the main reason that the strings don't share the metatable (i.e. every string has a new { __index = string }, and not like every string has (the same) 'string' as a metatable? Also it is not possible to setmetatable to strings. Just being curious.