At 06:32 20.11.2002, Andi Gutmans wrote:
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.
Yes that was my first attempt and yes it is a bit complicated (more than the rest of the patch)

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:[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

Reply via email to