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

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

Re: EIEIO built in methods -- question


From: David Engster
Subject: Re: EIEIO built in methods -- question
Date: Fri, 14 Jun 2013 17:14:16 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Eric Abrahamsen writes:
> There's the eieio-singleton class provided as part of the package, which
> does the same thing in principle: only lets you create one instance of
> the class.

[...]

> This is the same idea, yes? 

Yes. You can simply put eieio-singleton in your list of superclasses and
you will inherit this behavior.

> I don't know why "name" and "slots" aren't passed to
> `call-next-method'.

That's done by default. You only provide arguments to `call-next-method'
if you'd like to override them.

-David




reply via email to

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