[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(setf (apply #'accessor ...))
- To: bill@cambridge.apple.com
- Subject: (setf (apply #'accessor ...))
- From: Jon L White <jonl@lucid.com>
- Date: Thu, 15 Mar 90 18:24:01 PST
- Cc: dganglin%watstat.waterloo.edu@eddie.mit.edu, CommonLoops.pa@Xerox.COM
- In-reply-to: Bill St. Clair's message of Thu, 15 Mar 90 14:13:13 EST <9003151913.AA05857.bill@cambridge.apple.com>
- Redistributed: CommonLoops.pa
re: Redistributed: CommonLoops.pa
Date: Wed, 14 Mar 90 13:08:43 EST
From: Greg Anglin <watstat.waterloo.edu!dganglin@eddie.mit.edu>
[...]
(setf b (list bar))
(setf (apply #'foo b) 42)
[...]
CLtL2 does NOT include the use of (setf (apply ...) ...) that you want here.
It's easy to write what you want, however:
(setf b (list bar))
(apply #'(setf foo) 42 b)
Lucid's CLOS permits the former usage too, exactly as Greg Anglin expects it.
I wonder what the other CLOS implementations do?
-- JonL --