> > Enumerable.addMethod(myFunction)  that takes care of all the classes
> > that implement or extend it.

Hmmm. We have Class#addMethods() already which makes exactly what
you're talking about. Everything would be as simple as calling:


if Enumerable was a class. But it isn't!

What it is when you think of it in terms of OOP? It is abstract class.
It has some methods implemented but can't be instantiated and it has
one interface method that has to be implemented by child classes.

The problem is that Prototype doesn't support such a being.as an
abstract class :-( If it did, the "problem" of extending/changing the
Enumerable class (and it's children) would be solved.

Just an idea :-)
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to