[hunchentoot-devel] resurrect tbnl's debug-value macro?

Pierre THIERRY nowhere.man at levallois.eu.org
Fri May 4 10:58:20 UTC 2007


Scribit Mac Chan dies 03/05/2007 hora 21:02:
> I find it strange that you don't follow what my intention was because
> I thought that's how everyone else write lisp code in a bottom up
> style

I really do both styles, bottom-up and top-down, so I really didn't
understand what you wanted to do.

> Now if you require me to wrap every sexp with your
> (with-leaked-variables) macro before I can test them, I think I'll
> just give up

Don't, your wish is just a macro away:

http://arcanes.fr.eu.org/~pierre/2007/05/cl-leak/?rev/dd3cb6ee7410

In your case, you'd still do (leak-variables *leak* ...) in a handler to
capture the various variables you need, and it's not restricted to
dynamic variables related to Hunchentoot. Then you'd evaluate
(setf-leaked-variables *leak*) in the REPL and you're in the exact
situation *debug-mode* was bringing you in.

Except it's now more flexible, and there's a conditional branching and a
cache miss that won't go in Hunchentoot's critical path.

Quickly,
Pierre
-- 
nowhere.man at levallois.eu.org
OpenPGP 0xD9D50D8A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20070504/7e2262a7/attachment.sig>


More information about the Tbnl-devel mailing list