e$BF1MM$K!"e(BComplex(“1i”) e$B$be(B $~ e$B$re(B nil
e$B$K$9$k$h$&$G$9!#e(B
% ./ruby -e ’
/a/ =~ “a”
p $~
p Complex(“1i”)
p $~’
#<MatchData “a”>
Complex(0, 1)
nil
e$B$A$J$_$Ke(B Complex(“i”) e$B$Oe(B ArgumentError
e$B$K$J$C$F$7$^$&$N$Ge(B 1i
e$B$H$7$^$7$?!#e(B
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 M.
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 A.]