lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2002/10/19 08:41:36, Markus Fritsche <Fritsche.Markus@gmx.net> wrote:

> neko_soy wrote:
> 
>>Hi, im using min.c to make a mini lua.exe, but i want to set globals
>>like BGCOLOR and i dont know how to code it. I only can write new
>>functions :P
>
> PS.: Use the source, luke! (for example 
> http://www.inf.puc-rio.br/~ana/cgilua/)

I think a good source (sic) of code sample is the standalone executable 
itself (lua.c) and the standard libraries (l*lib.c), in src/lua and 
src/lib.
I often rip lua.c as a base for a specialized interpreter, and always look 
at the libs when I search an answer to a problem...

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/