monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Hooks...


From: Alex Queiroz
Subject: Re: [Monotone-devel] Hooks...
Date: Thu, 6 Sep 2007 08:36:37 -0300

Hallo,

On 9/5/07, Stephen Leake <address@hidden> wrote:
>
> I'm not clear what this means. Ah; not all Lua functions have names;
> they can be dynamically created. So are you asking whether functions
> passed to `add_hook' _must_ have names? I don't think that should
> matter (and can Lua tell whether a function has a name? I guess it
> probably can).
>

     Functions don't have names, they are just bound to variables.
Although you can get the "names" of the functions in the current call
stack using the debug interface, this is better be not abused because
it slows down the code.

Cheers,
-- 
-alex
http://www.ventonegro.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]