lua-users home
lua-l archive

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

> It would be very nice if Lua would accept callback functions for
> performing file I/O, printing strings, and allocating memory. It was
> very easy to modify the 4.0 code, but ideally I'd like to embed Lua
> without any modification, which makes upgrades and maintenance easier.

We have no plans about this for the libraries. Libraries are quite
modular and use too many facilities to be parameterized.

About the core, we moved lua_dofile (currently lua_loadfile) to outside
the core, so that it is easier to write your own file I/O routines.

About memory management, all calls are concentrated in a single point,
so it is quite easy to change. Is it really a good idea to go a step
further and implement that through a "callback" function?

-- Roberto