lua-users home
lua-l archive

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


On 22/03/2012 9.42, Hans Hagen wrote:
Indeed. I'm pretty sure that I use very long strings as index all over
the place. But does this patch indeed prevent long strings to be unique
indices? For me the interning of strings is one of the charms of Lua.

As this change could have a (potentially significantly) different impact on different programs, maybe it could be useful to be able to enable/disable it at program launch (or Lua state creation) time.

I'm especially thinking about Lua used as system-wide generic language, as opposed to ad-hoc tools that can be configured and recompiled as needed. Not all applications are at risk from key collision abuse; it seems a pity to limit the power of an interesting and useful feature of the language.

--
  Enrico