[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: even more on macros in maclisp
- To: KMP at MIT-MC, LISP-FORUM at MIT-MC
- Subject: Re: even more on macros in maclisp
- From: George J. Carrette <GJC at MIT-MC>
- Date: Thu ,15 Jan 81 19:38:00 EDT
EVAL doesn't need to be cleaned up to get the correct
action here, (although its a good idea). Consider the
following:
(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!
-gjc