Re: [PHP-DEV] about final methods and attributes

2003-06-22 Thread Andi Gutmans
At 11:27 AM 6/22/2003 +0200, Sebastian Bergmann wrote: Andi Gutmans wrote: > At least for consistency sake even though I think it's useless :) Consistency is the key issue here, IMHO. A typical use case for final classes and PHP might be, at some point, that a software vendor distributed his

Re: [PHP-DEV] about final methods and attributes

2003-06-22 Thread Sebastian Bergmann
Andi Gutmans wrote: > At least for consistency sake even though I think it's useless :) Consistency is the key issue here, IMHO. A typical use case for final classes and PHP might be, at some point, that a software vendor distributed his PHP application in encoded bytecode format and want

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Cristiano Duarte
Thanx Andi, it would help me with the consistency of the CORBA mapping. Cristiano Duarte "Andi Gutmans" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] To be quite honest, I don't see a need for final classes. Talking from my experience, classes which are designed to be final, oft

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Andi Gutmans
To be quite honest, I don't see a need for final classes. Talking from my experience, classes which are designed to be final, often end up being inherited from at some point or another. This happened to me quite often in C++ when taking other people's/company's code and required fixing their sou

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Cristiano Duarte
Thanx Marcus, it works great ! Cristiano Duarte "Marcus BöRger" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hello Cristiano, > > Saturday, June 21, 2003, 2:07:09 AM, you wrote: > > MB> Hello Cristiano, > > MB> Friday, June 20, 2003, 9:03:33 PM, you wrote: > > CD>> Ok, final

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Marcus Börger
Hello Cristiano, Saturday, June 21, 2003, 2:07:09 AM, you wrote: MB> Hello Cristiano, MB> Friday, June 20, 2003, 9:03:33 PM, you wrote: CD>> Ok, final methods and attributes are cool, but what about final classes ? CD>> Is it hard to implement ? Or all classes must be able to be extended by CD>

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Cristiano Duarte
objects in the extension to do some low-level operations (like Request object). Any comments ? Cristiano Duarte. - Original Message - From: "Timm Friebe" <[EMAIL PROTECTED]> To: "Cristiano Duarte" <[EMAIL PROTECTED]> Sent: Saturday, June 21, 2003 10:33 AM

Re: [PHP-DEV] about final methods and attributes

2003-06-21 Thread Cristiano Duarte
You´re right, sorry about the final attributes. I´m developing an IDL2PHP5 mapping specification and a compiler. To be full CORBA 2.3 aligned, I´m using Java IDL mapping specification as a base for the PHP IDL specification. CORBA Enums can be mapped as constants (like Universe extension) or class

Re: [PHP-DEV] about final methods and attributes

2003-06-20 Thread Alan Knowles
As far as I could see you only have final for methods, and not attributes. http://ny1.php.net/talks/show.php/php5intro/19 Regards Alan Marcus Börger wrote: Hello Cristiano, Friday, June 20, 2003, 9:03:33 PM, you wrote: CD> Ok, final methods and attributes are cool, but what about final classes

Re: [PHP-DEV] about final methods and attributes

2003-06-20 Thread Marcus Börger
Hello Cristiano, Friday, June 20, 2003, 9:03:33 PM, you wrote: CD> Ok, final methods and attributes are cool, but what about final classes ? CD> Is it hard to implement ? Or all classes must be able to be extended by CD> children ? It would be easy to implement and i made a running patch some ti