Maciej Katafiasz <mathrick@gmail.com> wrote:
+---------------
| [This goes primarly to Rob, whom I stole DBGV from, but as it's a
| generally useful macro, I'm posting it here in case anyone cares]
|
| Hi,
|
| some time ago I stole your DBGV macro. It's nifty, except it doesn't
| behave as described (ie. unlike PROGN, it eats the value of the forms
| executed).
+---------------
Where did I ever say that my DBGV acted like PROGN?
My records show that I always said exactly the opposite!!
Newsgroups: comp.lang.lisp
Date: Wed, 12 Sep 2007 21:02:50 -0500
Subject: Re: A "killer" macro
From: rpw3@rpw3.org (Rob Warnock)
Raymond Wiker <raw@RawMBP.local> wrote:
+---------------
| Emilio Lopes <eclig@gmx.net> writes:
| > Here is my take: a simple macro called `debug', which
| > prints a given *expression* followed by its value.
| ...
+---------------
...
p.s. The one from my personal toolbox, in CL:
...
I suppose I could make it return the last value like Emilio's does,
but I haven't found the need for that yet.
and:
Newsgroups: comp.lang.lisp
Date: Thu, 21 Feb 2008 23:42:17 -0600
Subject: Re: need help for a simple macro
From: rpw3@rpw3.org (Rob Warnock)
...
Kaz Kylheku <kkylheku@gmail.com> wrote:
+---------------
| I'd give a different name to the macro version, like CHATTY-PROGN. The
| macro version should handle multiple values from each form, in
| particular the last one. I'd make it like this:
|
| (defmacro chatty-progn (&body forms) ...[trimmed]... )
+---------------
Interesting that you added the multiple values support.
I've had a version of this in my toolbox for some years
*without* the multiple values support, and never missed it:
...
Were you perhaps thinking of Kaz's or Emilio's versions?
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607