php-developer-list | 2002112
Date: 11/29/02
- Next message: Sara Golemon: "Re: [PHP-DEV] Bug #20308 (Feature Request)"
- Previous message: Andi Gutmans: "RE: [PHP-DEV] ZE2 question"
- In reply to: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Next in thread: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Reply: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.txt
I 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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Sara Golemon: "Re: [PHP-DEV] Bug #20308 (Feature Request)"
- Previous message: Andi Gutmans: "RE: [PHP-DEV] ZE2 question"
- In reply to: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Next in thread: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Reply: Marcus Börger: "Re: [PHP-DEV] ZE2 + public/protected/private/final"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

