lua-users home
lua-l archive

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

>From Tue Jun 23 03:01:38 1998
>Lua has one global string table. If you modified a string in place you
>wouldn't necessarily know all the places it would take effect. For
>example, if you happened to modify a string which contained "draw" you
>would end up changing the string lookup of any "draw" method names
>contained in tables.  (Someone please validate that this is correct)

right. Lua stores strings in hash tables. If you change the string in place
after it's there, then hashing stops working correctly.