[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: [ANNOUNCE] Lua 5.0 (alpha) now available
- From: Jay Carlson <nop@...>
- Date: Tue, 20 Aug 2002 11:30:11 -0500 (CDT)
On Mon, 19 Aug 2002, Luiz Henrique de Figueiredo wrote:
> >but if I
> >find areas of Lua that I and other embedded systems programmers might
> >question, I'll either offer patches or suggestions to the Lua authors
> >for creating a more efficient core.
>
> Please do!
How about exposing a pair of "push const string" functions?
Semantics: the caller guarantees that the string argument will not
change or be deallocated for the lifetime of the Lua state.
Motivation: I've got this ROM here. (Well, actually it's a read-only
demand-loaded text segment, but pretend it's a ROM.) strdup'ing
string literals and other const strings increases the size of the
heap for no particularly good reason.
Jay