Re: Are PHP5 features worth it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# jochem@xxxxxxxxxxxxx / 2006-12-20 11:49:25 +0100:
> Roman Neuhauser wrote:
> > # zorglub_olsen@xxxxxxxxxxx / 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux