Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c

From: Date: Sun, 15 Feb 2004 15:09:19 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_default_classes.c zend_default_classes.h zend_execute.h zend_execute_API.c
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-7837@lists.php.net to get a copy of this message
Hi Timm, On Sun, 15 Feb 2004 12:53:21 +0100, Timm Friebe wrote: > As of B4, this is no longer possible. That's why i was agreeing to > Sterling in saying it should be optional to use the built-in exception > class. If there was a requirement to implement an interface (call it > Throwable, for instance), simply let the built-in class implement it. > People wouldn't have to get into interfaces when using (and/or > subclassing) it but *only* for the case when they want something > similar to what I described above. People wanting this will tend to be > the kind of people that know about interfaces, anyway:) First of all, I think there must be a "catch all" method for exceptions. This can be implemented by forcing a "base class", using an "interface" or a language construct. IMHO, as you said, using an interface and letting the built-in class implement it is the best approach. But only instances of classes wich implement this interface should be throw or caught(language enforcement). With this enforcement, we can have a "catch all" for exceptions with less pain. Cristiano Duarte

« previous php.internals (#7837) next »