in reply to Re^4: Debugger Questions - Variable Scope (source++)
in thread Debugger Questions - Variable Scope

But should be noted that references are often reused after a variable was destroyed (like when exiting scope)

The address of a reference might get re-used. References don't get re-used. Either you didn't weaken the reference and so the referenced item doesn't get destroyed. Or you do weaken the reference and, when the referenced item gets destroyed, the weakened reference is set to 0 (so any re-use of that particular address doesn't matter to your reference).

- tye        

  • Comment on Re^5: Debugger Questions - Variable Scope (!reuse)

Replies are listed 'Best First'.
Re^6: Debugger Questions - Variable Scope (!reuse)
by LanX (Saint) on May 16, 2014 at 16:12 UTC
    > the weakened reference is set to 0

    Ah great, good to know! Never worked with weakened references. Thx!

    Cheers Rolf

    ( addicted to the Perl Programming Language)