Re: Canonical Way to Mask SETF?



Marco Gidde <marco.gidde@xxxxxxxxxx> writes:
>
> So I think in
>
> (defsetf menu-title (x) (title) `(setf (getf ,x :title) ,title))
>
> it looks as if we were setting X, but it's "only" a temporary bound to
> X's value.

That's what appears to be the problem from my POV; I replace the
interior with a PROGN containing PRINTs around the SETF, and X
definitely gets set to (:TITLE "foo"); it just doesn't effect the value
of the passed-in variable. That is, it acts like a function, with a new
binding for a variable.

--
Robert Uhl <http://public.xdi.org/=ruhl>
There is no place for nationalism in the Church. All are one in
Christ. --Blessed Martyr Philoumenos of Jacob's Well, +1979
.