Alias_method allows illegal identifier name

e$B$O$8$a$^$7$Fe(J

alias_method e$B$G!"?7$7$$L>A0$K<1JL;R$H$7$F$OIT@5$Je(J
e$BJ8;zNs$rEO$7$F$b!"JLL>Dj5A$G$-$F$7$^$$$^$9e(J
e$B$b$A$m$s%3!<%k$G$-$^$;$s$,e(J

$ cat e.rb
module M
def m() end
alias_method “\t\n”, :m
end

p M.instance_methods

$ ruby -v e.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [i586-linux]
["\t\n", “m”]

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:32162] alias_method allows illegal identifier
name”
on Oct.31,2007 15:58:24, [email protected] wrote:
| alias_method e$B$G!"?7$7$$L>A0$K<1JL;R$H$7$F$OIT@5$Je(B
| e$BJ8;zNs$rEO$7$F$b!"JLL>Dj5A$G$-$F$7$^$$$^$9e(B

e$BJL$KIT@5$G$O$J$$$N$G$9!#e(B

| e$B$b$A$m$s%3!<%k$G$-$^$;$s$,e(B

__send__e$B$G8F$S=P$;$^$9!#e(B

e$B$=$l$G$O!#e(B

| alias_method e$B$G!"?7$7$$L>A0$K<1JL;R$H$7$F$OIT@5$Je(J
| e$BJ8;zNs$rEO$7$F$b!"JLL>Dj5A$G$-$F$7$^$$$^$9e(J

e$BJL$KIT@5$G$O$J$$$N$G$9!#e(J

e$B%j%U%!%l%s%9%^%K%e%"%k$N!V%a%=%C%IDj5A!W$Ke(J

e$B%a%=%C%IL>$H$7$F$ODL>o$N<1JL;R$NB>$K!":FDj5A2DG=$J1i;;;Re(J(e$BNce(J:
==, +, -
e$B$J$Ie(J)e$B$b;XDj$G$-$^$9e(J

e$B$H$"$C$?$N$G!"%a%=%C%I$NL>A0$H$7$F!"@5$7$/$J$$$b$N$r<u$1IU$1$J$$$b$N$@$He(J
e$B;W$C$F$^$7$?!#e(J
e$B2?$+FC<l$JMQES$N$?$a$K%(%i!<$K$J$i$J$$$h$&$K$J$C$F$$$k$N$+e(J…?

__send__e$B$G8F$S=P$;$^$9!#e(J
e$B%^%K%e%"%k$NFI$_$,@u$+$C$?$G$9!#e(J

e$B$=$l$G$O!#e(J
e$B$"$j$,$H$&$4$6$$$^$7$?e(J

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:32164] Re: alias_method allows illegal identifier
name”
on Oct.31,2007 17:09:05, [email protected] wrote:
| >| alias_method e$B$G!“?7$7$$L>A0$K<1JL;R$H$7$F$OIT@5$Je(B
| >| e$BJ8;zNs$rEO$7$F$b!“JLL>Dj5A$G$-$F$7$^$$$^$9e(B
| >
| >e$BJL$KIT@5$G$O$J$$$N$G$9!#e(B
|
| e$B%j%U%!%l%s%9%^%K%e%”%k$N!V%a%=%C%IDj5A!W$Ke(B
| – e$B%a%=%C%IL>$H$7$F$ODL>o$N<1JL;R$NB>$K!”:FDj5A2DG=$J1i;;;Re(B(e$BNce(B: ==, +, -
| e$B$J$Ie(B)e$B$b;XDj$G$-$^$9e(B
|
| e$B$H$“$C$?$N$G!”%a%=%C%I$NL>A0$H$7$F!"@5$7$/$J$$$b$N$r<u$1IU$1$J$$$b$N$@$He(B
| e$B;W$C$F$^$7$?!#e(B

defe$BJ8$G$O!“$=$3$K=q$+$l$F$$$kDL$j$NL>A0$7$+;XDj$G$-$^$;$s!#e(B
e$B$G$9$,!”$=$3$K$O2?$,;XDj$G$-$k$+$,=q$$$F$“$k$@$1$G!”%a%=%C%Ie(B
e$BL>$H$7$F2?$,@5$7$/$F2?$,@5$7$/$J$$$+$O=q$$$F$J$$$G$9$h$Me(B?

e$B$H$$$&$o$1$G!"%a%=%C%IL>$H$7$F$O<B:]$K$Oe(BSymbole$B$H$7$FM-8z$K$Je(B
e$B$j$&$kG$0U$NL>A0$r$D$1$k$3$H$,2DG=$G$9!#e(B

e$B$?$@$7!“e(Bdefe$BJ8$G$O>e5-$NDL$jDL>o$N<1JL;R$^$?$O:FDj5A2DG=$J1i;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