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

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 SimonClinch (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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199823]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-10-22 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (272 votes). Check out past polls.

    Notices?