Hello Derick, in 5.0 the solution is to use getMethods() and look for it. Since that is not the best to do and not what we really want to i'll commit johannes' patch for hasMethod() later today.
marcus Friday, December 24, 2004, 1:00:44 PM, you wrote: > On Fri, 24 Dec 2004, Sebastian Bergmann wrote: >> Andi Gutmans wrote: >> > Sebastian, throwing an exception is relatively slow and cumbersome and >> > sucks if you want to do something like a Delegation model and run >> > through objects and check if a method can be called. Having exceptions >> > thrown each time the object doesn't have the method is crazy. >> >> I do not think so (that it is crazy), for what it's worth. > I think it doesn't make sense if there is no method to actually check if > it's there. Now you start throwing exeptions without having a way to > avoid it. THAT is crazy. > Derick > -- > Derick Rethans > http://derickrethans.nl | http://ez.no | http://xdebug.org -- Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php