Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-09 Thread Andrey Hristov
- Original Message - From: "Marcus Börger" <[EMAIL PROTECTED]> Subject: Re: [PHP-DEV] classes, instances & objects in ZE2 >I think this is a key discussion for PHP. Do we want PHP to be acceptable >for big projects or not? +1 on that. And +1 on discussion if

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-09 Thread Marcus Börger
At 11:34 09.04.2002, Kristian Koehntopp wrote: >On Tue, Apr 09, 2002 at 11:11:58AM +0200, Marcus B?rger wrote: > > Keywords are better then implicit definitions. > >Agreed. > > > I would like to have private, protected and public which can > > be easily done by adding one single flag to the member

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-09 Thread Kristian Koehntopp
On Tue, Apr 09, 2002 at 11:11:58AM +0200, Marcus B?rger wrote: > Keywords are better then implicit definitions. Agreed. > I would like to have private, protected and public which can > be easily done by adding one single flag to the members of an > object. So how would you set or reset these fl

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-09 Thread Marcus Börger
At 10:47 09.04.2002, Kristian Koehntopp wrote: >On Mon, Apr 08, 2002 at 05:18:07PM +0200, Marcus B?rger wrote: > > >In my book, private is only of very limited use, because there > > >always must be a way around it. > > I skipped the first part because i think we are now talking about the same thi

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-09 Thread Kristian Koehntopp
On Mon, Apr 08, 2002 at 05:18:07PM +0200, Marcus B?rger wrote: > >In my book, private is only of very limited use, because there > >always must be a way around it. > > So that book is your own meaning. No, an english ideom. http://www.m-w.com/cgi-bin/dictionary?va=book "- in one's book : in one

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-08 Thread Wez Furlong
I agree with Kristian here; it is quite common to need to break the protected/privacy rules when the class hierarchy is badly designed. I'm referring to Delphi here where code like this is required because someone didn't make something public when they should have. It's a double issue: 1) is that

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-08 Thread Marcus Börger
At 15:36 08.04.2002, Kristian Köhntopp wrote: >Marcus Börger wrote: > > -> we have private, what about final, public, protected and > > abstract (can we remove/hide a method from an object)? > >Do we in ZE2? What use it is? > >In my book, private is only of very limited use, because there >always

Re: [PHP-DEV] classes, instances & objects in ZE2

2002-04-08 Thread Kristian Köhntopp
Marcus Börger wrote: > -> we have private, what about final, public, protected and > abstract (can we remove/hide a method from an object)? Do we in ZE2? What use it is? In my book, private is only of very limited use, because there always must be a way around it. Introducing private (in C++)