Careful with your wording, the variable does go out of "scope" at the end of the "if" block, but the object refrenced by that variable refrences does not neccessarily get garbage collected.
(As opposed to old ANSI C, where the variable itself was still in scope ... oy, those days sucked.)
In reply to Re: Re: Lexicals in if() scope gotcha!
by hossman
in thread Lexicals in if() scope gotcha!
by liz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |