[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: even more on macros in maclisp

EVAL doesn't need to be cleaned up to get the correct
action here, (although its a good idea). Consider the

(defmacro compiler-choice-now (x y)
          `(if (memq compiler-state '(maklap compile)) ,x ,y))

(defmacro foo ()
	  (compiler-choice-now 'car ''car))

Then ((FOO) '(A B)) has the correct action in the compiler
and the interpreter.

[I would think that this would be obvious.]

So, GLS, if you want to use operator macros GO FOR IT!