lua-users home
lua-l archive

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

On 08/06/2014 07:00 AM, Stefano wrote:
In 'lua [options] [script [args]]' it seems that neither _G.loadfile nor _G.loadfile are used to execute 'script', is this correct?

Also rephrased, is there a way to have 'lua -lDSL test.lua' pre-process tests.lua before execution? I am aware I can use 'lua DSL test.lua' instead with an appropriate DSL lua script.

Thank you
You can't modify the way the standard interpreter runs files. It uses the C API for this, not lbaselib.