lua-users home
lua-l archive

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

Thanks for the response :)

My last question for a while (no, really, I promise) is: how stable is 4.1?
I don't mind building Templar around 4.1, as long as its semi-stable and the
API is not going to change drastically between now and 4.1 release.


----- Original Message -----
From: "Luiz Henrique de Figueiredo" <>
To: "Multiple recipients of list" <>
Sent: Monday, September 10, 2001 11:53 AM
Subject: Re: Parsing to byte code

> >In my MUD engine, when a script file is loaded, I would like to
> >it to byte code, before the engine it self ever attempts to run it.
> With Lua 4.1, use lua_loadfile instead of lua_dofile.
> With Lua 4.0, write your scripts as "return function () XXX end", where
> is your original script, run dofile on this and get return value.
> If you want to save pre-compiled scripts, use dump in 4.1 (see
> --lhf