Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Overloaded *CORE:: function not behaving correctly

by broquaint (Abbot)
on Jul 29, 2004 at 08:06 UTC ( #378315=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Overloaded *CORE:: function not behaving correctly
in thread Overloaded *CORE:: function not behaving correctly

I believe this is so that builtins aren't looked up every time they are called, which is almost certainly for speed reasons. Where the fact that this 'builtin overriding behaviour needs to be implemented at compile-time' is documented, I'm not sure. It might be documented in the 3rd Camel, but I can't seem to find hide or hair of it in the standard docs. A patch to the Overriding Built-in Functions section of perlsub is probably needed.

HTH

_________
broquaint


Comment on Re^3: Overloaded *CORE:: function not behaving correctly
Re^4: Overloaded *CORE:: function not behaving correctly
by ysth (Canon) on Jul 29, 2004 at 08:35 UTC
    Second paragraph starts:
    Overriding may be done only by importing the name from a module at compile time--ordinary predeclaration isn't good enough.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://378315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-07-12 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls