[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: BUG-LISP at MIT-MC
- From: George J. Carrette <GJC at MIT-MC>
- Date: Wed, 10 Jun 81 01:24:00 GMT
- Original-date: 9 June 1981 21:24-EDT
Screwed again. Ah Bullshit. Guess what
(DEFUN FOO (&OPTIONAL (X X)) (FROB))
expands into?
(DEFUN FOO |LexprVar..1|
(LET (X)
(DSETQ X (COND ((> |lexprVar..1| 0) (ARG 1)) (X))
(FROB)))
This is WRONG. The correct code is
(DEFUN FOO |LexprVar..1|
(LET* ((X (COND ((> |lexprVar..1| 0) (ARG 1)) (X)))
(FROB)))
Where I have use LET* because thats what a sequence of &OPTIONAL's would
want.
-gjc