Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-05 Thread l0t3k
Timm, > Conclusion: Don't even try to write exception classes for PHP5 in C. You > will never please all of the users' needs - so simply leave it up to > them. im curious about why you take such a strong exception to built-in exceptions. are you suggesting that all C based objects use zend_error

RE: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-05 Thread Harald Radi
ct: Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev) > > > On Tue, 2003-02-04 at 13:05, Harald Radi wrote: > > ? > > > > harald > > Well, you were talking about throwing exceptions from within C > sourcecode, weren't you? You would nee

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-05 Thread Timm Friebe
On Tue, 2003-02-04 at 13:05, Harald Radi wrote: > ? > > harald Well, you were talking about throwing exceptions from within C sourcecode, weren't you? You would need a zend_class_entry to throw - but what should this point to? You would probably go ahead and declare an exception class (in your ex

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-04 Thread Harald Radi
? harald "Timm Friebe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:<1044352391.22055.58.camel@localhost>... > On Mon, 2003-02-03 at 21:20, Harald Radi wrote: > [...] > > when called as function -> print warning > > when called as method -> throw exception > > What exception? There are no bui

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-04 Thread Timm Friebe
On Mon, 2003-02-03 at 21:20, Harald Radi wrote: [...] > when called as function -> print warning > when called as method -> throw exception What exception? There are no builtin exceptions and IMHO it would be better to leave writing such up to the user. E.g. I'd like to be able to have _all_ my c

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-03 Thread Sterling Hughes
On Mon, 2003-02-03 at 15:41, George Schlossnagle wrote: > On Monday, February 3, 2003, at 03:20 PM, Harald Radi wrote: > > > Hrmfpsd, > > > > while commiting a new functions the parameter parsing API i appearently > > brought up a discussion about the meaning of life and stuff :) As > > asked by

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-03 Thread George Schlossnagle
On Monday, February 3, 2003, at 03:20 PM, Harald Radi wrote: Hrmfpsd, while commiting a new functions the parameter parsing API i appearently brought up a discussion about the meaning of life and stuff :) As asked by Andi i'm bringing the discussion to php5-dev with a short summary: andrei's

[PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-03 Thread Harald Radi
Hrmfpsd, while commiting a new functions the parameter parsing API i appearently brought up a discussion about the meaning of life and stuff :) As asked by Andi i'm bringing the discussion to php5-dev with a short summary: andrei's point: extensions should stick to either functional or oo API PEA