[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lstrings
- From: Steve Dekorte <steve@...>
- Date: Tue, 23 May 2000 18:41:36 -0700
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> >Are all strings within Lua represented as lstrings?
>
> Yes. All strings within Lua are byte arrays with an explicit length
stored.
> The length is a long, and so the strings can be really long :-)
> See the type TString in lobject.h for details.
>
> But doesn't the manual say so?
>
> Lua is eight-bit clean, and so strings may contain any 8-bit character,
> including embedded zeros.
Sorry to ask a manual question. What confuses me is that Waldemar Celes
created buffer APIs for glLua. Why do this if you can use strings as
buffers?
Waldemar?
Steve