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

<http://perl5.git.perl.org/perl.git/commitdiff/343d03e768e8a0fd8d9aca836df191d819f4e3e8?hp=0000000000000000000000000000000000000000>

        at  343d03e768e8a0fd8d9aca836df191d819f4e3e8 (commit)

- Log -----------------------------------------------------------------
commit 343d03e768e8a0fd8d9aca836df191d819f4e3e8
Author: David Mitchell <[email protected]>
Date:   Wed May 6 11:56:47 2015 +0100

    allow undef as an arg to '&' prototype
    
    RT #123475
    
    Commit e41e9865be5555 (to fix [perl #123062]) restricted the types of
    args allowed for a function with a '&' prototype - previously it allowed
    array refs and the like. It also removed undef, so this was now a
    compile-time error:
    
        sub foo (&) {...}
        foo(undef)
    
    However, some CPAN code used the idiom register_callback(undef) to
    explicitly disable a registered callback.
    
    So re-allow an explicit undef.
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to