Re: Live_Objects behavior depends on garbage collection timing

[prev] [thread] [next] [Date index for 2004/07/09]

From: Siamak Pazirandeh
Subject: Re: Live_Objects behavior depends on garbage collection timing
Date: 22:44 on 09 Jul 2004
Yes.. sorry. "Class::DBI::card->retrieve(25189)" is not required for this behaviour to occur. 

Max
On Fri, Jul 09, 2004 at 06:31:06PM -0400, Perrin Harkins wrote:
> On Fri, 2004-07-09 at 18:17, Siamak Pazirandeh wrote:
> > Sorry about not clarifying, but the card object remains "Live" even if
> > I don't keep a local var pointed to it, and even if I return "1" from
> > the block. That's why I suspect has_a as the culprit. 
> > 
> > Here is a revised version of example 4:
> > 
> > -----------
> > do {
> > 	Class::DBI::card->retrieve(25189);
> > 	if (my $hh=Class::DBI::html->retrieve(25189)) {
> > 	$hh->html;
> > 	}
> > 	1;
> > };
> > print STDERR Class::DBI->dump_object_index();
> 
> Okay, but I'm still confused about why you're calling
> Class::DBI::card->retrieve(25189) in the beginning.  Doesn't $hh->html()
> already fetch that object?  What happens if you take that line out?
> 
> - Perrin
> 

(message missing)

Re: Live_Objects behavior depends on garbage collection timing
Siamak Pazirandeh 22:44 on 09 Jul 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52