lua-users home
lua-l archive

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


Hello list,

Say I have a Lua script that loads modules also written in Lua. Some
modules contain an OnEvent() function. From my "master" Lua script (the
one that loads the modules) I would like to call the OnEvent() function
of all loaded modules at a given time. How can I achieve this?

Sample module follows:
--------------------------
module "foo"

function OnEvent()
	dosomething()
end
--------------------------

TIA for hints!

-- 
Gergo Szakal <bastyaelvtars@gmail.com>