[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (setf (apply #'accessor ...))
- To: Jon L White <email@example.com>
- Subject: Re: (setf (apply #'accessor ...))
- From: Gregor.pa@Xerox.COM
- Date: Fri, 16 Mar 90 10:14 PST
- Cc: firstname.lastname@example.org, email@example.com, CommonLoops.pa@Xerox.COM
- Fcc: BD:>Gregor>mail>outgoing-mail-9.text.newest
- In-reply-to: <9003160224.AA01162@kent-state>
- Line-fold: no
Date: Thu, 15 Mar 90 18:24:01 PST
From: Jon L White <firstname.lastname@example.org>
Lucid's CLOS permits the former usage too, exactly as Greg Anglin
expects it. I wonder what the other CLOS implementations do?
Do you mean that the following works too:
(defsetf foo set-foo)
(setf (apply #'foo x) y)
(defun (setf bar) (new x) ..)
(setf (apply #'bar x) y)
This seems a bit problematic to me since SETF is a macro which operates
on symbols and APPLY is a function which operates on functions. I guess
you can make it work in practice but...
I'm no fair judge since I never liked SETF anyways.