[ruby-talk:00832] Re: feature request

From: OZAWA Sakuro <crouton@...>
Date: 1999-09-29 06:43:19 UTC
List: ruby-talk #832
At Wed, 29 Sep 1999 13:23:58 +0900,
matz@netlab.co.jp (Yukihiro Matsumoto) wrote:

> Since the gsub methods replaces the matches with the evaluated value
> of the given block

Oh, I've been understanding that gsub { } would hook the substitution
operation and do something in given block instead, so assignment to
elements of MatchingData in the block could change some of them.

But such assignment never happns in Ruby, since any assignment is just
aliasing:-)

--
OZAWA -Crouton- Sakuro
<mailto:crouton@duelists.org>
<http://www.duelists.org/~crouton/>



In This Thread