[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: FEtching individual funmctions from modules
- From: Gergo Szakal <bastyaelvtars@...>
- Date: Mon, 30 Jul 2007 19:37:12 +0200
Thank you both for your help, it works but sometimes I get stack
overflows. I am not sure what causes it. Here is the code I use:
function HandleEvent (event, ...)
for pkg, moddy in pairs(package.loaded) do
if ModulesLoaded[pkg] and type(moddy[event]) == "function" then
moddy[event](...)
end
end
end
ModulesLoaded is a table that tracks the modules (thanks to Luiz for
pointing me to this direction.)
--
Gergo Szakal <bastyaelvtars@gmail.com>