OOPHP more about copies: new and &new
| From: | Alberto Serra | Date: | Wed, 10 Jul 2002 11:42:38 +0000 |
| Subject: | OOPHP more about copies: new and &new | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106761@lists.php.net to get a copy of this message | ||
Привет!
when your instances contain references and you prepare ther references in the constructor, you should remember to call the *new* function with an &.
Otherwise all you get is a copy, and all the references you prepared are invalid.
use *new and all you trouble vanishes away :)
пока
Альберто
Киев
@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is.......