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: 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/




reply via email to

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