in reply to Re^2: "goto" memory leak
in thread "goto" memory leak
That snippet exhibits an infinite loop, or two. The goto is always taken since $i++ < 100_000 will always be true...
Objects may have side effects when they are DESTROYed, so this must happen at some well-defined moment (scope exit). Gotos cannot create scopes as there is no way to determine the flow of the program.
|
|---|