[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue: SETF-METHOD-FOR-SYMBOLS (version 1)




HP's Common Lisp produced the desired results, namely r and s having
identical values.  I agree that this change would be beneficial to the
language and should not adversely impact the performance of most
implementations.

1 LISP [USER:] > (setq r '(a 1 b 2 c 3))
(A 1 B 2 C 3)
2 LISP [USER:] > (setq s r)
(A 1 B 2 C 3)
3 LISP [USER:] > (setf (getf r 'b) (progn (setq r nil) 6))
6
4 LISP [USER:] > r
(A 1 B 6 C 3)
5 LISP [USER:] > s
(A 1 B 6 C 3)
6 LISP [USER:] > (eq r s)
T

Dave Matthews