Reply to Re: speed: by reference or by value?

Your name:

Reply:


Posted by Chung Leong on 12/04/05 02:20

Chameleon wrote:
> but I believe this is wrong in php core.
> why php must copy the object (in our script: array) even if the pointed
> data don't change?

Perhaps it's possible to defer the copying until the write operation
actually, but I suspect the logic would be quite complicated. It's like
Jill trying into slip a new picture book under the hand of her little
brother start as he starts drawing.

But as I said, the use of reference usually denotes that changes will
occur. If you don't want variable separation to occur, then don't use
references.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация