Re: How can I do this -- method chaining
| From: | Richard Lynch | Date: | Wed, 30 Jan 2008 23:59:56 +0000 |
| Subject: | Re: How can I do this -- method chaining | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268381@lists.php.net to get a copy of this message | ||
On Wed, January 30, 2008 9:53 am, Stut wrote:
> The "forcing it out of scope" was the crux of my point. However, if
> Jochem is right then it's kinda pointless with the current
> implementation of the GC, but may become relevant in the new GC.
I dunno about the OOP instances getting GC'ed, but PHP *definitely*
reclaims memory from arrays and strings as they go out of scope,
usually.
You can work at something complicated enough to confuse it that it
won't reclaim it, but you have to work at it to get there.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?