[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How do you deal with event functions?
- From: Shmuel Zeigerman <shmuz@...>
- Date: Wed, 06 Dec 2006 13:51:38 +0200
Rici Lake wrote:
On 5-Dec-06, at 6:37 PM, Shmuel Zeigerman wrote:
C provides SetEvent function, and Lua registers only
*one* event handler. C calls that handler passing
event name (a string) and any number of parameters.
Or you could just register the handler table, which would also work
nicely with the Lua 5.1 module system.
Yes, but what extra functionality/flexibility would that achieve?
Could you give a simple example?