<div class="gmail_quote">On Tue, Mar 10, 2009 at 11:28 AM, Edi Weitz <span dir="ltr"><<a href="mailto:edi@agharta.de">edi@agharta.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Mar 10, 2009 at 7:53 AM, Eric Abrahamsen <<a href="mailto:girzel@gmail.com">girzel@gmail.com</a>> wrote:<br>
> Most often, I'm redefining an existing handler (to<br>
> expand or correct it) and would rather overwrite that handler with its<br>
> new version, rather than adding a new entry. I'm finding it awkward to<br>
> modify my macro so that it checks for an existing handler with that<br>
> function name and overwrites it – more importantly I'm not certain<br>
> this is the best way to do it.<br>
<br>
</div>DEFINE-EASY-HANDLER should overwrite existing handlers of the same<br>
name (or if they have the same - EQUAL - URI part).  If it doesn't do<br>
that, it's a bug.</blockquote></div>Maybe he is referring to the fact, that after redefining the DISPATCHER, the running server's dispatch table remains unchanged. In the sense, that the server continues to use the dispatcher closures, created at the time of the server start. At least for me it works this way (in old Hunchentoot): when I redefine a dispatcher, I need to modify the dispatch table (or plainly restart the server) for the change to take effect.<br>
<br>To clarify, I'd like to add, that I refer to the handler functions as per the docs (e.g. html-generation functions). They take no arguments and are responsible for forming the reply object. If you redefine them, it has immediate effect. Dispatchers are the closures in the dispatch-table, that take 1 argument -- request. If you redefine the dispatcher (for example, with define-easy-handler, or manually), somehow, it doesn't effect the running server's dispatch-table.<br clear="all">
<br>-- <br>vsevolod<br>