lua-users home
lua-l archive

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

> wxLua builds an executable that allows scripts to be appended to it as
> they are without any recompiling. You run a Lua program with the name
> of the wxLuaFreeze executable and the name of your Lua script to be
> appended and it generates some magic code placed at the end of the new
> program. When the wxLuaFreeze executable is run it looks for the magic
> at the end which tells it the length of the appended script and then
> loads and runs that.

That's exactly the approach used in srlua.

> It's simple and easy, but only works for single file Lua programs.

You can always combine several Lua programs into one with luac or
my enhanced luac.lua which supports require.