Project

General

Profile

Actions

Bug #113

closed

Complex("1i") clear $~

Added by Anonymous over 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
Backport:
[ruby-dev:34991]

Description

=begin
同様に、Complex("1i") も $~ を nil にするようです。

% ./ruby -e '
/a/ =~ "a"
p $~
p Complex("1i")
p $~'
#<MatchData "a">
Complex(0, 1)
nil

ちなみに Complex("i") は ArgumentError になってしまうので 1i
としました。

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

Actions #1

Updated by matz (Yukihiro Matsumoto) over 14 years ago

  • Assignee set to matz (Yukihiro Matsumoto)

=begin

=end

Actions #2

Updated by Anonymous over 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r17148.
=end

Actions #3

Updated by Anonymous over 14 years ago

=begin
Issue #113 has been updated by Anonymous.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r17148.

Bug #113: Complex("1i") clear $~
http://redmine.ruby-lang.org/issues/show/113

Author: Anonymous
Status: Closed
Priority: Low
Assigned to: Yukihiro Matsumoto
Category:
Target version:

同様に、Complex("1i") も $~ を nil にするようです。

% ./ruby -e '
/a/ =~ "a"
p $~
p Complex("1i")
p $~'
#<MatchData "a">
Complex(0, 1)
nil

ちなみに Complex("i") は ArgumentError になってしまうので 1i
としました。

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


You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account

=end

Actions

Also available in: Atom PDF