[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: newbie question - strings and arrays
- From: David Given <dg@...>
- Date: Thu, 13 Oct 2005 16:03:59 +0100
On Thursday 13 October 2005 15:47, Chris Marrin wrote:
> This would work fine for ASCII, and maybe even for Latin1 in some cases.
> But if your string is UTF8, then you will possibly be getting
> intermediate bytes.
Well, yeah; Lua strings are defined to be, er, defined in terms of bytes. This
would work (or fail to) to exactly the same extent as all the rest of Lua's
> strings look like Unicode sequences and will support character indexing
> as well as things like split, join and substring.
Um. While a reasonable String class would be valuable, I'm not filled with
Although I'll admit that String isn't too bad; it's Array that's really
unspeakable. But this is a rant for another time.
+- David Given --McQ-+ "Information wants to be free, but my mail client
| firstname.lastname@example.org | does not want to be chock-full of herbal pot
| (email@example.com) | alternative spam." --- Sant Lupus on Slashdot
+- www.cowlark.com --+
Description: PGP signature