in reply to overloading core function and non-existing operator

Spelling, s/singed/signed/.

You're correct that the Perl5 parser cannot manage undefined operators. You only get to overload existing operators. Perl6 is supposed to remedy that.

In any language, operator overloading is something that needs to be done with taste and discretion.

After Compline,
Zaxo

  • Comment on Re: overloading core function and non-existing operator

Replies are listed 'Best First'.
Re^2: overloading core function and non-existing operator
by QM (Parson) on Aug 08, 2005 at 19:21 UTC
    You're correct that the Perl5 parser cannot manage undefined operators. You only get to overload existing operators. Perl6 is supposed to remedy that.
    Wasn't there a post recently (on another topic) about creating subroutine names out of any charater string, and not just the standard set? (Maybe it was in obfuscation, but I can't find it.)

    Update: Added quote, plus followup:

    Here it is: What is this doing, and why is this a good method of doing it?, and where Zaxo describes what it does.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of