Juerd wrote:
Rod Adams skribis 2005-05-14 19:21 (-0500):I believe they could all be implemented as a global function that returns $CALLER::?SELF, or however you spell that.
o.
O.
this.
self.
me.
Not special syntax, meaning you can no longer use these identifiers for your own class. Bad style to use single-letter identifiers, but we know what trouble $a and $b in Perl 5 cause, and the B:: namespace.
Neither is ¥ (except in Japan, but I don't think that was a deciding factor), which has a 7-bit version that isn't even infix. However, it is in the extended ASCII table, same as « » ¥. so the 7-bit version could just be $?SELF, and act as an encouragement for people to get better editors. With the Windows US-International keyboard layout, it's AltGr-Shift-; Other systems should have standard ways to type it as well.° (an idea I just had. would likely need a 7-bit option as well)
Not on any of the keyboards that I regularly use, and the ascii-equivalent would be \w, which has the problems described above.
-- Rod Adams