Re: OO-problem

From: Date: Fri, 20 Apr 2001 16:17:02 +0000
Subject: Re: OO-problem
References: 1 2 3  Groups: php.lang 
Request: Send a blank email to php-lang+get-147@lists.php.net to get a copy of this message
I sure do hope Bas is on the mailing list, otherwise, we've just been discussing this amongst ourselves :) At 17:33 20/4/2001, Andrei Zmievski wrote:
On Wed, 18 Apr 2001, Zeev Suraski wrote: You can't have multiple definitions for the same method. However, you can easily implement this functionality in a number of different ways: - Using default argument values (e.g., function b($var=unset) { ... }; If $var is unset, behave as if there were no arguments sent). =unset syntax should have been gone a while ago. Andi? using $var=null works just as well. -Andrei * Life may be expensive, but it includes an annual free trip around the sun. *
-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

« previous php.lang (#147) next »