Subject: Using lisp displa to view local variables
From: Raymond Toy
Date: Tue, 26 Jul 2011 13:42:33 -0700
On 7/26/2011 1:31 PM, Edwin Woollett wrote:
> On July 26, 2011, Stavros Makrakis wrote:
> **************************
> That all looks correct to me. If you want something like (ldisplay x
> y z) to print x=3, y=3, etc., then ***ldisplay*** needs to be a macro.
> ****************************************
> I have tried using (dolist (xk xx) body) with and without
> (defmacro...) with no success. I obviously need to study up
> on Lisp macros. Where do I put the commas when my
> starting point is a lisp list like xx?
At this point, I think you really should study up on Lisp macros. We
could give you solution, but it probably won't help you with writing
other macros. I learned a lot by reading On Lisp by Paul Graham. I
think it's out of print, but it might be available on the web some where.
FWIW, whenever I want to print stuff like what you're doing, I either
use plain old Lisp format. Or if I know I want to print some maxima
expression, I just (displa expr).
Ray