Re: [PHP] Object and reference problem

2001-10-18 Thread SafeV
Sigh, I guess you're right... But I think a better solution is to wrap strings in a String object Thanks for your input! Brian White wrote: > I think you are going to have to live with it. > > Functional overloading only really makes sense in strongly typed > languages, and I bet is a bugger t

Re: [PHP] Object and reference problem

2001-10-18 Thread SafeV
> in your array as by default adding items to arrays causes copies to be made. > So you also need the line: > >$this->children[] = &$child; > > Hope this helps. > > > >>-Original Message- >>From: Brian White [mailto:[EMAIL PROTECTED]]