Re: RfC: rethink OO inheritance strictness

From: Date: Wed, 02 Aug 2006 13:32:51 +0000
Subject: Re: RfC: rethink OO inheritance strictness
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-25127@lists.php.net to get a copy of this message
Zeev Suraski wrote: > My recommendation: > - Add a new flag to methods (at the implementation level) that will allow to flag them as > 'strict' > - In case such a strict method is improperly overridden - error out (E_ERROR) Zeev, ain't your recommendation already covered by interfaces? > - In case a non-strict method is improperly overridden - emit E_STRICT > - Consider adding userland ability to set entire classes or methods as strict Regards, -- Michael

« previous php.internals (#25127) next »