diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-08-06 00:20:06 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-08-14 12:23:30 -0700 |
commit | 4aaa475724fbbc4ab2427743fa4d07a12e6ce0d9 (patch) | |
tree | d179695a33037243c65c51f5373eaa5a8c95931d /MANIFEST | |
parent | 9927957a90b2fe6bdb0e2be889b2edcddadea174 (diff) | |
download | perl-4aaa475724fbbc4ab2427743fa4d07a12e6ce0d9.tar.gz |
Add inlinable &CORE::functions
This commit allows this to work:
BEGIN { *entangle = \&CORE::tie };
entangle $foo, $package;
And the entangle call gets inlined as a tie op, the resulting op tree
being indistinguishable.
These subs are not yet callable via &foo syntax or through a refer-
ence. That will come later, except for some functions, like sort(),
which will probably never support it.
Almost all overridable functions are supported. These few are not:
- infix operators
- not and getprotobynumber (can’t get the precedence right yet;
prototype problem)
- dump
Subsequent commits (hopefully!) will deal with those.
How this works:
gv_fetchpvn_flags is extended with hooks to create subs inside the
CORE package. Those subs are XSUBs (whose C function dies with an
error, for now at least) with a call checker that blows away the
entersub op and replaces it with whatever op the sub represents.
This is slightly inefficient right now, as gv_fetchpvn_flags calls
keyword(), only to have core_prototype call it again. That will
be fixed in a future refactoring.
Diffstat (limited to 'MANIFEST')
-rw-r--r-- | MANIFEST | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4917,6 +4917,7 @@ t/op/concat2.t Tests too complex for concat.t t/op/concat.t See if string concatenation works t/op/cond.t See if conditional expressions work t/op/context.t See if context propagation works +t/op/coreinline.t Test inlining of \&CORE::subs t/op/cproto.t Check builtin prototypes t/op/crypt.t See if crypt works t/op/dbm.t See if dbmopen/dbmclose work |