php-developer-list | 2002112
Date: 11/20/02
- Next message: Robin Ericsson: "[PHP-DEV] XML_Parser and php"
- Previous message: Yasuo Ohgaki: "Re: [PHP-DEV] 4.2.3 mbstring patch?"
- In reply to: Marcus Börger: "[PHP-DEV] RFC: ZE2 and abstract"
- Next in thread: Marcus Börger: "Re: [PHP-DEV] RFC: ZE2 and abstract"
- Reply: Marcus Börger: "Re: [PHP-DEV] RFC: ZE2 and abstract"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'm a bit behind my Email but I'll give you a quick answer.
I think we can do abstract method's but I wouldn't want to do it the way
you did because it adds an additional check in the method calling.
It should create a function which will bailout.
This might be a bit complicated to do so I'll put it on my TODO.
Andi
At 04:55 PM 11/19/2002 +0100, Marcus Börger wrote:
>The link below contain a patch that allows abstract functions in ZE2.
>http://marcus-boerger.de/php/ext/ze2
>
>abstract [static] function '(' parameters ')' ';'
>
>it would be possible to make the ';' optional.
>
>When an abstract method is called a fatal error is generated and
>execution stops. Another way of handling abstract would be to
>generate an E_WARNING or throw an exception. I experimented
>with the second one already but do not like it. I favor the first
>over the third but haven't tried that yet.
>
>The thinks i did:
>introduce T_ABSTRACT = "abstract" and modified the parser.
>added is_abstract after is_static in zend_function (and such)
>emit an E_ERROR when is_abstract is set in
>zend_init_static_method_call_handler & zend_init_method_call_handler
>
>marcus
>
>
>
>------------------->>> mailto:mail <email protected> <<<------------------
>"We are animals among animals, all children of matter,
>save that we are the more disarmed. But since, unlike animals,
>we know that we must die, let us prepare for that moment
>by enjoying the life that has been given us by chance and for chance."
> Umberto Eco, The island of the day before
>--------------------->>> http://marcus-boerger.de <<<---------------------
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Robin Ericsson: "[PHP-DEV] XML_Parser and php"
- Previous message: Yasuo Ohgaki: "Re: [PHP-DEV] 4.2.3 mbstring patch?"
- In reply to: Marcus Börger: "[PHP-DEV] RFC: ZE2 and abstract"
- Next in thread: Marcus Börger: "Re: [PHP-DEV] RFC: ZE2 and abstract"
- Reply: Marcus Börger: "Re: [PHP-DEV] RFC: ZE2 and abstract"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

