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 468275 (Curate) 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