Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_language_parser.y

From: Date: Wed, 11 Dec 2002 11:28:09 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_language_parser.y
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-710@lists.php.net to get a copy of this message
At 17:25 09/12/2002, Marcus Börger wrote:At 13:10 09.12.2002, Zeev Suraski wrote:
- Prevent users from putting more restrictions on methods in derived classes
    (i.e., you cannot make a public method private in a derived class, etc.)
I do not like it because it is an error from language design. Visibility is about information hiding and not information showing. Also Stanislav is wrong in his comment about 'is_a' but i will explain in more detailed there soon.
I think that the 'is a' approach is entirely accurate. From a language design point of view, it makes perfect sense. It also happens to be the way Java and C# work, so you can be fairly certain that from an object orientation point of view, it works fine. There's still one outstanding bug to fix (parent class calling a child method instead of its own private method), but other than that, it appears to be the best and most comprehensive solution. Zeev

« previous php.zend-engine.cvs (#710) next »