In perl.git, the branch smoke-me/davem/sigattr has been created

<https://perl5.git.perl.org/perl.git/commitdiff/1981844efbd5d44e522cd0e4ade5d6309102c2e4?hp=0000000000000000000000000000000000000000>

        at  1981844efbd5d44e522cd0e4ade5d6309102c2e4 (commit)

- Log -----------------------------------------------------------------
commit 1981844efbd5d44e522cd0e4ade5d6309102c2e4
Author: David Mitchell <da...@iabyn.com>
Date:   Thu Jan 18 09:44:10 2018 +0000

    move sub attributes before the signature
    
    RT #132141
    
    Attributes such as :lvalue have to come *before* the signature to ensure
    that they're applied to any code block within the signature; e.g.
    
        sub f :lvalue ($a = do { $x = "abc"; return substr($x,0,1)}) {
            ....
        }
    
    So this commit moves sub attributes to come before the signature.  This is
    how they were originally, but they were swapped with v5.21.7-394-gabcf453.
    This commit is essentially a revert of that commit (and its followups
    v5.21.7-395-g71917f6, v5.21.7-421-g63ccd0d), plus some extra work for
    Deparse, and an extra test.
    
    See:
        RT #123069 for why they were originally swapped
        RT #132141 for why that broke :lvalue
        http://nntp.perl.org/group/perl.perl5.porters/247999
                   for a general discussion about RT #132141

-----------------------------------------------------------------------

-- 
Perl5 Master Repository

Reply via email to