Re: Re: Strange notation to create object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-06-24 at 10:02, Jason Barnett wrote:
> Robert Cummings wrote:
> ...
> > 
> > 
> > There's a difference between a reference to a reference and a copy of a
> > reference *hehehe*.
> > 
> > Cheers,
> > Rob.
> 
> Dear diary: jackpot!
> 
> Now that makes sense.  And am I correctly filling in the blanks when I 
> guess that $foo3 = $aObj is merely copying the reference instead of 
> referencing the reference?  I probably could have written that more 
> clearly, but I think you get what I'm saying.

Yeah, *grin*. And on that note, there are times when you will actually
want $foo = &new SomeClass(); versus $foo = new SomeClass(); since
assigning by reference will break any previous references -- something I
forgot to mention to Matthew Weier when he challenged the relevance of
the snippet I sent.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux