[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How do you deal with event functions?
- From: Jose Marin <jose_marin2@...>
- Date: Tue, 5 Dec 2006 15:26:18 +0000 (GMT)
I'm sorry for the confusion!
By design of my engine!
Lua is flexible enought to not dictate things like
--- firstname.lastname@example.org escreveu:
> * On 2006-12-05 Jose Marin
> <email@example.com> wrote :
> > By design, all the functions used as event
> > must be global and named.
> By what design, could you please elaborate on that ?
> This is not
> something the language dictates, is it ?
> > > My $0.02: The pro of #2 would be that there's
> less fiddling around
> > > to do in C, since you can store the name of the
> function in a
> > > regular *char. The biggest - and I think
> unacceptable - con of #2
> > > would be that this will not work with anonymous
> functions, local
> > > functions or anything which is not in _G.
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!