This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make <expr> always overload if expr is overloaded
authorDavid Mitchell <davem@iabyn.com>
Sun, 2 Jan 2011 19:38:30 +0000 (19:38 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 2 Jan 2011 20:00:27 +0000 (20:00 +0000)
commit9426e1a55981168c83a030df9bce5e0b46586581
tree9693090582930b7f145f2050c847bd2f87f9ed0d
parentbff33ce02f3be5fbb5af2c3c92e9853aaa12151e
make <expr> always overload if expr is overloaded

Due to the way that '<> as glob' was parsed differently from
'<> as filehandle' from 5.6 onwards, something like <$foo[0]>
didn't handle overloading, even where $foo[0] was an overloaded object.
This was contrary to the docs for overload, and meant that <> couldn't
be used as a general overloaded iterator operator.
lib/overload.t
op.c
pp.h
pp_hot.c
pp_sys.c