This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #77814] Make defelems propagate pos
authorFather Chrysostomos <sprout@cpan.org>
Tue, 16 Jul 2013 01:57:01 +0000 (18:57 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 16 Jul 2013 02:14:23 +0000 (19:14 -0700)
commit96c2a8ff507ccc5e4a6d00051b23e7a73d844322
tree21a226d6eb96eaca777384ff09bc5e466807608d
parentd30fb84472a75fa446629f16d12e1ced09787ce4
[perl #77814] Make defelems propagate pos

When elements of @_ refer to nonexistent hash or array elements, then
the magic scalar in $_[0] delegates all set/get actions to the element
in represents, vivifying it if needed.

pos($_[0]), however, was not delegating the value to the element, but
storing it on the magical â€˜deferred element’ scalar.
embed.fnc
embed.h
mg.c
pp.c
pp_ctl.c
pp_hot.c
proto.h
regexec.c
sv.c
t/op/pos.t