[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Load Compiled Script?
- From: "Wim Couwenberg" <w.couwenberg@...>
- Date: Wed, 30 Apr 2003 10:26:39 +0200
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