> Yes, I'm aware of call() but it's very slow. Also it's not feasible to > have > *all* my classes extend a base class with the a call containing a throw > InvalidMethodException, and what if I need to use 3rd party libraries that > make use of call in some other way. __call() is a hack, that, at best, > work > 50% of the time. >
Calling methods without knowing that they exist sounds like a hack to me. How about using abstract classes or interfaces? -- Mikko Koppanen