lua-users home
lua-l archive

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

> Yea, but I don't want to execute the (whole / main) chunk, I just want 
> to execute a function called START as the main entry point of the script.
> If no function START is defined, I want to do nothing / revoke execution.
> How can I do this?

START is not defined until you execute the chunks because
	function START() ... end
is sugar for
	START = funtion () ... end