Re: Is get-slot-value guaranteed to be setf'able?

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Mon, 10 May 2004 12:46:42 -0600
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
rif wrote:
> If I have a structure, my natural inclination is to set fields in the
> structure using (setf (get-slot-value obj type field)).  In CMUCL,
> this certainly works, because get-slot-value simply expands into a
> call to alien:slot, which is setf'able.  My question is whether this
> is considered "portable" UFFI, and will work on all implementations
> which UFFI supports?  If this is not portable, is there some other way
> I should be doing this?

Yes, it's portable across all UFFI-supported implementations.

> This should maybe be mentioned briefly on p. 15 of the manual?

That's a good idea.

-- 
Kevin Rosenberg
kevin-HJRc7zDS/[email protected]