Good points. I think I'll leave Michael to answer that. He wants it changed. I'm just saying that overloading would be a valid solution.
On 21/07/06, Soenke Ruempler <[EMAIL PROTECTED]> wrote:
Richard Quadling <mailto:[EMAIL PROTECTED]> wrote on Friday, July 21, 2006 1:16 PM: > Ah. I see the difference. I'm expecting overloading. Hmmm. Even with > that though, overloading is the desired effect. But PHP has no parameter overloading, only overloading with interceptor methods. IMHO what you do is "misusing" OOP polymorphism as parameter overloading. For clearness of your class interface / public API, why don't you just use another method that accepts other parameters than the parent's one. Another possibilty / workaround is no method parameters in declaration and to use func_get_args(). -soenke
-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php