&CORE::foo() for dbmopen and dbmclose
authorFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 01:06:23 +0000 (18:06 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 06:02:09 +0000 (23:02 -0700)
commit19c481f4fff148c75b12b0f9ef8dadc7116b1001
tree0c081b0056c58f0e0c8e1ffccff320314dc03e6a
parent30901a8a3fcf590cb60375fd3b39c6b0d0bf6e00
&CORE::foo() for dbmopen and dbmclose

This commit allows the subs in the CORE package for close, getc and
readline to be called through references and via ampersand syntax.  A
special case for each of them is added to pp_coreargs to deal with
calls with no arguments.  Pushing a null on to the stack (which I’m
doing for other ops) won’t work, as a null already means something for
these cases: close($f) won’t vivify a typeglob if $f is a string, so
the implicit rv2gv pushes a null on to the stack.
gv.c
pod/perldiag.pod
pp.c
t/op/coresubs.t