in reply to Re^3: Should I use weaken on an object attribute containing a reference to an object which contains reference back to original object?
in thread Should I use weaken on an object attribute containing a reference to an object which contains reference back to original object?

The OP wants a general advice for weaken with an ambiguous OO design.

My point in 3 posts already is that it's not possible to answer a fuzzy question, because different readers will have different use cases in mind.

That's a bad ground to discuss weaken thoroughly. Bad question, useless answer.

A conclusion like

> > > But there's also a problem with using weaken.

looks problematic to me.

FWIW: The only general advice I found in the perldocs on weaken is to use it on the shorter lived ref.

Update

Creating a decent discussion/tutorial for weaken would be nice.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^4: Should I use weaken on an object attribute containing a reference to an object which contains reference back to original object?