So do you think that when iterating over values, the refcount of all values being iterated should have their refcount incremented before the loop startsUnder PERL_RC_STACK builds (which will eventually become the default), this will happen automatically, as all items will get their reference count incremented when pushed onto the the argument stack (which doesn't happen at the moment). A for loop by default just iterates over a range of items on the stack.
Dave.
In reply to Re^12: Use of freed value in iteration
by dave_the_m
in thread Use of freed value in iteration
by js1
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |