On Mon, Sep 29, 2014 at 12:10:30PM +0100, Dave Mitchell wrote: > On Fri, Sep 26, 2014 at 10:47:57AM -0700, Father Chrysostomos via RT wrote: > > On Sun Jul 13 06:45:16 2014, davem wrote: > > > Perhaps I should add a global var to B: $B::OP::does_parent, say, which is: > > > > > > undef on older perls > > > 0 on perls that have the parent() method but not -DPERL_OP_PARENT > > > 1 on perls that have the parent() method and -DPERL_OP_PARENT > > > > Has this happened yet? > > No, its still on my TODO list Now done with commit c3890f9c66df165fa44ec6d4da220ab976c4d31d Author: David Mitchell <davem@iabyn.com> AuthorDate: Mon Feb 2 17:05:23 2015 +0000 Commit: David Mitchell <davem@iabyn.com> CommitDate: Mon Feb 2 17:05:23 2015 +0000 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. -- "Emacs isn't a bad OS once you get used to it. It just lacks a decent editor."Thread Previous