[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: |
Wed, 5 Sep 2007 09:34:01 -0300 |
Hallo,
On 9/5/07, Richard Levitte <address@hidden> wrote:
>
> So I've a proposal to make this easier, and it's to have a hook
> registry in monotone, and changing the way hooks are implemented to be
> anonymous functions that are used as arguments to a registration
> function, 'add_hook' perhaps?
>
Yeah, it's a good proposal. Give events names and then:
add_hook(event, func) -- adds a hook and returns an id
remove_hook(event, id) -- remove previously added hook
Cheers,
--
-alex
http://www.ventonegro.org/
- [Monotone-devel] Hooks..., Richard Levitte, 2007/09/05
- Re: [Monotone-devel] Hooks..., Stephen Leake, 2007/09/05
- Re: [Monotone-devel] Hooks...,
Alex Queiroz <=
- Re: [Monotone-devel] Hooks..., Richard Levitte, 2007/09/05
- 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