This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

add-hook!


Perhaps add-hook! could return the procedure that was added -- it would
facilitate later removing closures that are added.  I could do:

(define foo (add-hook! window-close-hook (lambda (win) (display win))))

(remove-hook! foo)

Alternatively, add-hook! could return a handle to the hook that would
work for remove-hook! as well.

Greg