[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Implemented fast string append and a new call a = string.append(a, b)
- From: "Sam Roberts" <vieuxtech@...>
- Date: Sat, 29 Nov 2008 16:44:33 -0800
On Sat, Nov 29, 2008 at 4:28 PM, Paul Sheer <paulsheer@gmail.com> wrote:
> But all high-level languages *should* have proper dynamic strings.
> Basically, all programmers expect that a = a .. b should be efficient.
You know python, java, and C# have immutable strings, too? Your all is
a bit limited. :-)
> Well I just joined this list to post my patch because it was useful to me
> and my commercial product.
And now you know that your patch may wreak havoc if you use those strings
for table keys, or in comparisons, or for new strings that have the
same hash value.
But it works for your app, and you didn't have to write the rest of
lua from scratch. Cool.
Cheers,
Sam