# [EMAIL PROTECTED] / 2006-12-20 11:49:25 +0100:
> Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2006-12-19 19:05:23 +0100:
> >> What major compelling reasons do I have to start using exceptions and 
> >> OOP-5?
> > 
> > All the things you mentioned, and then some.
> > 
> > Someone else mentioned that PHP 5 is much less inclined to copy objects.
> 
> it's not inclined to copy at all - you always get a reference to the existing
> object.

Well, that's been my observation so far... but PHP has no specification,
and I don't really know I've hit all the little corners of the
self-defining implementation.
 
> > You still don't get the convenience of a private copy constructor, but
> > hey.
> 
> maybe I misunderstand you but isn't this what you mean by 'private copy 
> ctor'?:
> 
> http://php.net/manual/en/language.oop5.cloning.php

Yes, that's (almost exactly) what I meant. I dunno why I thought
__clone() couldn't be made private, perpahs it didn't work in 5.0.x when
I played with the new features?

Sorry for the FUD in any case.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to