| 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.
  Navigation: [Reply to this message] |