[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Misfeature: macros expanding into declarations
- To: Tim McNerney <TIM@MIT-MC.ARPA>
- Subject: Misfeature: macros expanding into declarations
- From: Rob MacLachlan <RAM@CMU-CS-C.ARPA>
- Date: Sat, 04 May 1985 22:49:00 -0000
- Cc: common-lisp@SU-AI.ARPA, Fahlman@CMU-CS-C.ARPA
- In-reply-to: Msg of 4 May 1985 19:26-EDT from Tim McNerney <TIM at MIT-MC>
I think both of your examples are better handled by other
mechanisms that already exist.
In you (declare (special ...)) example, I suspect that making the
variables globally special would work better. The only time it
wouldn't work was if you were actually binding the variables, and
sometimes bound them specially and sometimes not. I doubt that anyone
does this, and if they do, it should probably be glaringly obvious.
As for the second example, I suggest:
(defun %eq-seconds-p (list-1 list-2)
(declare (inline car cdr eq)))
(eq (cadr list-1) (cadr list-2)))
Are these samples of real code, or are they just contrived examples?