[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: zero containing strings
- From: lhf (Luiz Henrique de Figueiredo)
- Date: Tue, 23 Jun 1998 07:42:57 -0300
>From jeske@home.chat.net 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.
--lhf