]> git.vpit.fr Git - perl/modules/autovivification.git/commit
Classify aliasing constructs in the "store" category
authorVincent Pit <vince@profvince.com>
Thu, 18 Jun 2009 17:54:35 +0000 (19:54 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 18 Jun 2009 17:54:35 +0000 (19:54 +0200)
commitb47bb780966680623d37ce471e44f64ae12a5863
treee4711b83bd4b9bc23872522403a21cd55a2dd43b
parent337a1b18d78b1f8abc831159aadb8a0ff42baf68
Classify aliasing constructs in the "store" category

There's no way to guess at compile time if the scalar will be modified, such as in "eval '$_ = 1' for $x->{key}". Practically, there's no way to distinguish the xelem op from the one you get for "$x->{key} = $val". I was going against the interpreter's will and this is my defeat.

This commit partially reverts ddbfd527f4c54458985145aae3a837a8f5868551.
autovivification.xs
lib/autovivification.pm
t/20-hash.t
t/21-array.t