Re: RE: PHP 4.0 Bug #6193 Updated: new object makes a shallow copy

From: Date: Fri, 18 Aug 2000 19:20:09 +0000
Subject: Re: RE: PHP 4.0 Bug #6193 Updated: new object makes a shallow copy
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29507@lists.php.net to get a copy of this message
HD>> The change: HD>> 1.) The new constructor always returns references or alternatelly HD>> we would need a syntax like &new HD>> 2.) The assignment operator handles references as references not HD>> as the value of the reference. Sorry, you misunderstand what references are in PHP. The are not like pointers in C. Not even close.
you´re free to support Andi and add some explications, I tought references are close to pointers in C, as we don´t document what references are users will be confused forever... I think the need to let a function return a reference and then the additional need to add the reference operator to assign it as a reference does not make sense to most users. regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#29507) next »