From: Tanaka Akira Date: 2007-12-20T15:48:23+09:00 Subject: Re: named captures assigning to local variables In article <476A0D80.8050505@path.berkeley.edu>, Joel VanderWerf writes: > Very nice. Since = is not an operator (and not a method), a certain > amount of magic is acceptable (to me). Methods should just be methods. =~ has some magic already. It is not redefinable for regexp literals. % ./ruby -e ' class Regexp def =~ p :called end end p /b/ =~ "abc" ' 1 % ./ruby -v ruby 1.9.0 (2007-12-20 patchlevel 0) [i686-linux] -- Tanaka Akira