Re: defining methods based on built-in ELisp types
"Eric M. Ludlam" <[email protected]> Thu, 11 Oct 2012 21:54:48 -0400
| Newsgroups | gmane.emacs.eieio |
|---|---|
| Message-ID | <[email protected]> |
On 10/10/2012 07:48 AM, Jesse Alama wrote:
> I recently started to use EIEIO in my ELisp programming. Coming from
> CLOS, I naturally started to define methods like
>
> (defmethod foo ((x string) ...))
>
> (defmethod foo ((x cons)) ...)
>
> But this seems to be unsupported. It looks like this lack of
> functionality is behind item #2 on the EIEIO wish list ("Method
> dispatch for built-in types"). Has there been any progress on this
> front?
As far as I know, no one has looked into how to make that work. Most of
the projects I've worked on have only needed new classes, not extensions
of built-in types.
I suspect any such feature would need to be done from Emacs core. I
suppose it could be faked from the outside, but there would be no useful
features to inherit from the base type since they have no methods. ;)
Eric
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev