Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Keeping relationally child objects alive with Moo

by Anonymous Monk
on Sep 21, 2017 at 10:44 UTC ( #1199823=note: print w/replies, xml ) Need Help??

in reply to Keeping relationally child objects alive with Moo

Problem is that sometimes a $tob gets destroyed in spite of being nested in a living model object.

that should not happen unless you are using weak references, please show an SSCCE to reproduce

  • Comment on Re: Keeping relationally child objects alive with Moo

Replies are listed 'Best First'.
Re^2: Keeping relationally child objects alive with Moo
by (anonymized user) (Deacon) on Sep 21, 2017 at 10:58 UTC
    Nope, as I said, I want to get the basic approach right as the priority, only if the issue were unavoidable from the outset for lack of a better approach would it be sound to pursue it by keeping the basics and looking at the code in detail.

    One world, one people

      you claimed that objects were getting destroyed even though you still have a reference to them, that should not happen, and if it is, then you've either found a serious bug in Perl or a serious bug in your code. so that needs to be tracked down and fixed before discussing the "basic approach", since obviously there is something wrong with it right now. SSCCE

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199823]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2018-08-22 05:40 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (204 votes). Check out past polls.