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

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

Re: EIEIO accessing class slots


From: Stefan Monnier
Subject: Re: EIEIO accessing class slots
Date: Thu, 10 Jun 2021 18:02:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> How can I accede to the initarg of an eieio class?

What do you mean exactly by that and why do you need that?

> ;; apparently this is not an eieio-class ?!
> (eieio--class-p 'morai-dired-side)
> ;; => nil

`eieio--class-p` checks if the arg is a class object, where you passed
a symbol which is the *name* of the class object.

> As a side note the eieio manual is outdated, it references 
> 'class-slot-initarg',
> while it is now 'eieio--class-slot-initarg'.

Thanks, I'll try and see how to adjust it,


        Stefan




reply via email to

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