lua-users home
lua-l archive

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


You could also use "conditional execution" like this:

if must_execute then
    -- put some code here
end

function aap() ... end

if must_execute then
    -- put some more code here
end

function noot() ... end

-- etc...

Now you can control execution of the script by defining the global
must_execute before running do_file.

Isn't it possible to split the script in separate logical parts?  Grouping
related stuff in distinct scripts can make a lot of such dependencies go
away...

Bye,
Wim