help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: set-slot-value confusion


From: Stefan Monnier
Subject: Re: set-slot-value confusion
Date: Fri, 05 Feb 2016 11:32:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> This function is obsolete since 25.1;
> use (setf (slot-value ..) ..) instead
[...]
> So what should we be using instead of `set-slot-value'?

It says right there: (setf (slot-value ..) ..)


        Stefan


PS: `slot-value' (and its setf setter) is part of the CLOS standard,
    whereas set-slot-value is not.  If you like to use EIEIO as an
    implementation of CLOS, then use slot-value and its setter, whereas
    if you prefer to use EIEIO as its own library (inspired by EIEIO),
    then use eieio-* names.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]