Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^6: "goto" memory leak

by jethro (Monsignor)
on Mar 31, 2016 at 13:15 UTC ( #1159200=note: print w/replies, xml ) Need Help??

in reply to Re^5: "goto" memory leak
in thread "goto" memory leak

Very true, it is impossible to check for scope exit. But would it be possible to check somehow (with a flag attached to the variable for example) whether the my variable already has a "destroy" POST routine on the stack or not?

Replies are listed 'Best First'.
Re^7: "goto" memory leak
by ikegami (Patriarch) on Apr 01, 2016 at 15:44 UTC
    That would require extra memory for each PAD entry, and would require extra time to exit a scope, just to avoid some rare degenerate case where someone uses bad coding practices. That would be a bad tradeoff.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2022-05-28 06:32 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (98 votes). Check out past polls.