lua-users home
lua-l archive

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


On Mon, May 25, 2009 at 4:36 PM, Jörg Walter <joerg-walter@gmx.de> wrote:
> but why not store the chunk text in all cases? it seems incoherent.

Storing the source code in uncompiled form is a complete waste of
memory, except in certain debugging situations. Hence the default
behaviour for luaL_loadfile is to remember only the name of the file -
you can always open the file yourself to get the code.