e$B0J2<$N$h$&$K!"e(B(0…0).max e$B$,e(B -1 e$B$K$J$j$^$9!#e(B
% ./ruby -ve ‘p((0…0).max)’
ruby 1.9.0 (2007-07-12 patchlevel 0) [i686-linux]
-1
e$B0J2<$N$h$&$K!"e(B(0…0).max e$B$,e(B -1 e$B$K$J$j$^$9!#e(B
% ./ruby -ve ‘p((0…0).max)’
ruby 1.9.0 (2007-07-12 patchlevel 0) [i686-linux]
-1
e$B$J$+$@$G$9!#e(B
At Thu, 12 Jul 2007 19:11:00 +0900,
Tanaka A. wrote in [ruby-dev:31198]:
e$B0J2<$N$h$&$K!"e(B(0…0).max e$B$,e(B -1 e$B$K$J$j$^$9!#e(B
e$B6u=89g$H9M$($l$P!"e(B1.8e$BF1MMe(Bnile$B$K$J$k$Y$-e(B?
— range.c (revision 12748)
+++ range.c (working copy)
@@ -503,4 +503,5 @@ range_max(VALUE range)
return Qnil;
if (EXCL(range)) {
if (c == 0) return Qnil;
if (FIXNUM_P(e)) {
return LONG2NUM(FIX2LONG(e) - 1);e$B$J$+$@$G$9!#e(B
At Fri, 13 Jul 2007 10:43:37 +0900,
Nobuyoshi N. wrote in [ruby-dev:31202]:
e$B0J2<$N$h$&$K!"e(B(0…0).max e$B$,e(B -1 e$B$K$J$j$^$9!#e(B
e$B6u=89g$H9M$($l$P!"e(B1.8e$BF1MMe(Bnile$B$K$J$k$Y$-e(B?
(0…0).mine$B$b$+$J!#e(B
— range.c (revision 12748)
+++ range.c (working copy)
@@ -469,5 +469,5 @@ range_min(VALUE range)
int c = rb_cmpint(rb_funcall(b, id_cmp, 1, e), b, e);
if (c == 0) return Qnil;
if (FIXNUM_P(e)) {
return LONG2NUM(FIX2LONG(e) - 1);e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B
In message “Re: [ruby-dev:31203] Re: (0…0).max”
on Fri, 13 Jul 2007 10:50:15 +0900, Nobuyoshi N.
[email protected] writes:
|At Fri, 13 Jul 2007 10:43:37 +0900,
|Nobuyoshi N. wrote in [ruby-dev:31202]:
|> > e$B0J2<$N$h$&$K!"e(B(0…0).max e$B$,e(B -1 e$B$K$J$j$^$9!#e(B
|>
|> e$B6u=89g$H9M$($l$P!"e(B1.8e$BF1MMe(Bnile$B$K$J$k$Y$-e(B?
|
|(0…0).mine$B$b$+$J!#e(B
e$B$G$7$g$&$M!#%3%_%C%H$7$F$/$@$5$$!#e(B
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs