This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add $B::overlay feature
authorDavid Mitchell <davem@iabyn.com>
Tue, 23 Oct 2012 20:39:10 +0000 (21:39 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sat, 10 Nov 2012 13:39:30 +0000 (13:39 +0000)
commit71324a3bc4a9e86bdeeabcaf87f9cdac28ba7510
tree982bc3c22a83e542b1ead16d5ae55e0c6a3f2f92
parent11911e219c403b8773ab8f4e97d5fb23c092aa86
add $B::overlay feature

This allows you to alter the read-only "view" of an optree, by making
particular B::*OP methods on particular op nodes return customised values.
Intended to be used by B::Deparse to "undo" optimisations, thus making it
easier to add new optree optimisations without breaking Deparse.
ext/B/B.pm
ext/B/B.xs
ext/B/t/b.t