[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: FEtching individual funmctions from modules
- From: Gergo Szakal <bastyaelvtars@...>
- Date: Mon, 30 Jul 2007 04:29:58 +0200
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>