This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add $B::OP::does_parent variable
authorDavid Mitchell <davem@iabyn.com>
Mon, 2 Feb 2015 17:05:23 +0000 (17:05 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 2 Feb 2015 17:05:23 +0000 (17:05 +0000)
commitc3890f9c66df165fa44ec6d4da220ab976c4d31d
treebf93e7570744a4a3d15e2ffaf6b91078902549e1
parentaf352bf2fad22f15849580c84ed131e70e025d43
add $B::OP::does_parent variable

This will help people write B:: code that can, in a backwards-compatible way,
handle the parent method that has recently been added, and whose behaviour
varies depending on whether perl was built with PERL_OP_PARENT.
ext/B/B.pm
ext/B/B.xs