[tpm] Weird arrary reference bahaviour
fulko.hew at gmail.com
Thu Nov 1 06:26:10 PDT 2007
On Wed, 2007-10-31 at 21:42 -0400, Indy Singh wrote:
At the end of each iteration of the loop, @f falls out of scope.
> I would have thought that @f falls out of scope _after_ the closing
> brace, not while still inside it. But you seem to be right.
You are right in your assumption, but there are two phases
that you are (incorrectly) grouping together...
The name of @f _does_ fall out of scope after the brace,
but the allocated 'stuff' to contain the data doesn't
(I.e. if a reference is taken).
But on the other hand, every 'my' encountered would allocate
a new bit of 'stuff' regardless of any scope issue.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm