Trey Harris wrote:
I love this.And any class could override the <~ operator, right?
Right.
I suppose it could be done like arithmetic overloading, if you define both <~ ("I'm being pointed at from the right") and ~> ("I'm being pointed at from the left") in your class then Perl will use whichever appears in code, but if you define just one, Perl will use it for both.
Hmmmm. Maybe. I'm not certain that Perl 6 operator overloading will be as highly dwimical as Perl 5's is. Damian