[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
setf bug
- To: BUG-LISP at MIT-MC
- Subject: setf bug
- From: Alan Bawden <ALAN at MIT-MC>
- Date: Tue, 12 May 81 17:40:00 GMT
- Cc: GZ at MIT-MC
- Original-date: 12 May 1981 13:40-EDT
Date: 12 May 1981 05:44-EDT
From: Gail Zacharias <GZ at MIT-MC>
(SETF (FIXNUM-IDENTITY (CAR SOME-LIST)) 17.)
wants that SOME-LIST should be a fixnum...
This is becase it expands into:
(progn (fixnum-identity (rplaca some-list 17.)) 17.)
While you people are fixing this, could you make it expand into:
(fixnum-identity (progn (rplaca some-list (fixnum-identity 17.)) 17.))
or some other variation that does a fixnum-identity BEFORE performing
the side-effect? This would be a useful error check to have in the
interpreter.