[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01797] Re: Is this a bug?

From: matz@... (Yukihiro Matsumoto)
Date: 2000-03-10 09:37:04 UTC
List: ruby-talk #1797
Hi,

In message "[ruby-talk:01786] Is this a bug?"
    on 00/03/09, Clemens Hintze <clemens.hintze@alcatel.de> writes:

|(mailed & posted)

mailed only.

|I am using Ruby 1.4.3 yet! Now I have found a behavior that seems not
|in-line with the documentation.

Kernel#sub works like:

  $_ = $_.sub(/pat/, repl)

which does not modify the original $_ value, but update the value of $_.
I consider it a feature.

							matz.

In This Thread