diff options
author | David Mitchell <davem@iabyn.com> | 2015-05-06 11:56:47 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-05-08 15:27:04 +0100 |
commit | 8283f70d81a621964815ba89abe1518130e1685c (patch) | |
tree | 1600fc00d4b5c8fa89d16e8d8c5193fc1e33ecce /README.os390 | |
parent | 737f753477826d5b8aea4125965e48c81d274b7d (diff) | |
download | perl-8283f70d81a621964815ba89abe1518130e1685c.tar.gz |
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.
Diffstat (limited to 'README.os390')
0 files changed, 0 insertions, 0 deletions