Re: ZE2 + public/protected/private/final
| From: | Andi Gutmans | Date: | Fri, 29 Nov 2002 16:40:53 +0000 |
| Subject: | Re: ZE2 + public/protected/private/final | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91927@lists.php.net to get a copy of this message | ||
At 06:25 PM 11/28/2002 +0100, Marcus Börger wrote:
With current ZE2 it is possible to instanciate an abstract class. That is a class that has at least one abstract method. When we add a flag field to class_entry struct we can handle this. We simply need to set an abstract flag for the class entry when any abstract method is added or inherited. I updated the full patch to do it that way: http://marcus-boerger.de/php/ext/ze2/ze2-f3p-21128.diff.txtI thought about this but am not quite sure how I feel about this. I know that theoretically in C++ and Java you can't instantiate such classes but I'm not sure it'd be too bad in PHP. If I were to implement this I'd probably use a counter to *remember* how many abstract methods a class has. Andi