[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in new defun& macro.
- To: bug-lisp @ mit-ai
- Subject: Bug in new defun& macro.
- From: Scott Fahlman at CMU-10A (C380SF50)
- Date: Sun, 28 Jan 79 19:28:00 GMT
- Original-date: 28 Jan 1979 1428-EST
Try doing the following:
(defun& foo (a b &optional (c 'c) (d 'd) &rest r)
(print `(start ,a and ,b and ,c and ,d and ,r)))
(foo 1 2 3 4 5 6 7 8)
I get (START 1 and 2 and 3 and 4 and (4 5 6 7 8)) which
is not right. The rest argument is picking up the list
from 4 on instead of 5 on. Other cases seem to work better.
Bugs aside, the new stuff is really nice.
-- Scott Fahlman