Project

General

Profile

Actions

Bug #112

closed

Rational("355/113") clear $&

Added by Anonymous over 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-dev:34990]

Description

=begin
以下のように、Rational("355/113") とすると $& が nil になり
ます。

% ./ruby -ve '/a/ =~ "a"
p $&
Rational("355/113")
p $&
'
ruby 1.9.0 (2008-06-07 revision 16875) [i686-linux]
"a"
nil

[田中 哲][たなか あきら][Tanaka Akira]
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0