Hi,
In message "[ruby-talk:01229] A vote for old behavior"
on 00/02/03, Dave Thomas <Dave / thomases.com> writes:
|Could I put in a vote for a return to the old behavior of 'gsub!' ?
Method chain like `str.gsub!(pat,repl).gsub!(pat,repl)' is error
prone, I think. That's why I changed the behavior.
|Sometimes it's nice to be able to write
|
| 1 while gsub!(....)
|
|(for example while matching nested syntactical constructs)
1 while gsub!(...) && $~
^^^^^^
is a workaround for this case.
matz.
p.s.
cvs.netlab.co.jp will be closed on Saturday (+900).