[Top][All Lists]
[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/
- Re: [Monotone-devel] Hooks..., (continued)
- Re: [Monotone-devel] Hooks..., Matthew Sackman, 2007/09/05
- Re: [Monotone-devel] Hooks..., Richard Levitte, 2007/09/05
- Re: [Monotone-devel] Hooks..., Alex Queiroz, 2007/09/05
- Re: [Monotone-devel] Hooks..., Matthew Sackman, 2007/09/05
- Re: [Monotone-devel] Hooks..., Stephen Leake, 2007/09/05
- Re: [Monotone-devel] Hooks..., hendrik, 2007/09/05
- Re: [Monotone-devel] Hooks..., Nathaniel Smith, 2007/09/05
- Re: [Monotone-devel] Hooks..., Richard Levitte, 2007/09/05
- Re: [Monotone-devel] Hooks..., Nathaniel Smith, 2007/09/05
- Re: [Monotone-devel] Hooks..., Stephen Leake, 2007/09/05
- Re: [Monotone-devel] Hooks...,
Alex Queiroz <=