diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-04-17 07:58:29 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-04-17 07:58:29 +0000 |
commit | 256d1bb207447524e8a478707a9d2a73dc679170 (patch) | |
tree | c53f95bc0788c951d6210464ce5303ea372a1211 /pod/perltodo.pod | |
parent | c94593d00233fc038590bd1033bbe8f67f02f70c (diff) | |
download | perl-256d1bb207447524e8a478707a9d2a73dc679170.tar.gz |
/* This code tries to figure out just what went wrong with
gv_fetchmethod. It therefore needs to duplicate a lot of
the internals of that function.
"Duplicate". <snigger>. You said a naughty word. Now sanitised.
[All tests pass, but I'm not 100% confident that this code is
equivalent in all reachable corner cases, and it may be possible
to simplify the error reporting logic now in gv_fetchmethod_flags]
p4raw-id: //depot/perl@33702
Diffstat (limited to 'pod/perltodo.pod')
-rw-r--r-- | pod/perltodo.pod | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod index ad1d6ce989..3f1593902f 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -664,25 +664,6 @@ only the interpretation of non-ASCII characters, and not for the script file handle. To make it work needs some investigation of the ordering of function calls during startup, and (by implication) a bit of tweaking of that order. -=head2 Duplicate logic in S_method_common() and Perl_gv_fetchmethod_autoload() - -A comment in C<S_method_common> notes - - /* This code tries to figure out just what went wrong with - gv_fetchmethod. It therefore needs to duplicate a lot of - the internals of that function. We can't move it inside - Perl_gv_fetchmethod_autoload(), however, since that would - cause UNIVERSAL->can("NoSuchPackage::foo") to croak, and we - don't want that. - */ - -If C<Perl_gv_fetchmethod_autoload> gets rewritten to take (more) flag bits, -then it ought to be possible to move the logic from C<S_method_common> to -the "right" place. When making this change it would probably be good to also -pass in at least the method name length, if not also pre-computed hash values -when known. (I'm contemplating a plan to pre-compute hash values for common -fixed strings such as C<ISA> and pass them in to functions.) - =head2 Organize error messages Perl's diagnostics (error messages, see L<perldiag>) could use |