[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-dev
Subject:    Re: [PEAR-DEV] [PEPr] Comment on PEAR::PEAR_Delegator
From:       lingwitt () bellsouth ! net
Date:       2005-02-25 23:06:39
Message-ID: 5c3e514421667cfdf5a78031a9a84b86 () bellsouth ! net
[Download RAW message or body]

Alright. Checkout the new code and documentation, thanks.

On 23 Feb 2005, at 17:32, Stephan Schmidt wrote:

> Hi,
>
> lingwitt@bellsouth.net schrieb:
>> I have updated the source, though the only breeches of standards I 
>> found were with curly braces.
>> Let me know if I missed something.
> That's basically what I found as well. So this should be OK now.
>
>> I extend PEAR because there is no multiple inheritance. People would 
>> probably want to have a PEAR class as well as a delegator. Besides, 
>> it's logically pleasing to have one pure root class.
> Why would one want to extend PEAR? There are mainly two reasons:
> 1. Error Handling
> 2. No Destructors in PHP4
>
> The first can be done using excepions or PEAR_ErrorStack (which is a 
> lot more flexible) and the second is available in PHP5. I think, a lot 
> of people will not use you package, if it's extending PEAR.
>
> Please think about this subject prior to your first release and take a 
> look at the error handling RFC 
> (http://pear.php.net/pepr/pepr-proposal-show.php?id=132) which defines 
> that PHP5-only packages should use PEAR_Exception instead of 
> PEAR_Error.


-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic