Several problems on the big commit


#1

e$B7o$NBg$-$J%3%%C%H$r$6$C$HD/$a$F$$?$N$G$9$,!"e(B

% ./ruby -ve ’
def m(a, b=:b, *c, d)
p [a,b,c,d]
end
m(:x, :y)

ruby 1.9.0 (2006-06-11) [i686-linux]
-e:2:in `m’: wrong number of arguments (ArgumentError)
from -e:5

e$B$H$$$&$h$&$KI,?\0z?t$,e(B a, d e$B$Ne(B 2e$B$D$7$+$J$$$N$Ke(B
2e$B0z?t$G8F$V$He(B
ArgumentError e$B$K$J$k$H$+!"e(B

-#define VIS_MASK 7
+#define VIS_LOCAL 8
+#define VIS_MASK 16

e$B$H$$$&$h$&$K!"e(BVIS_MASK e$B$,e(B 7 e$B$+$ie(B 16
e$B$K$J$C$F$$$k$H$+!"e(B

  • ios.readchar   => string
    

e$B$H$J$C$F$$$k$K$b$+$+$o$i$:e(B

% echo | ./ruby -ve ‘p STDIN.readchar’
ruby 1.9.0 (2006-06-11) [i686-linux]
10

e$B$H$$$&$h$&$K@0?t$,JV$C$F$/$k$H$+!"e(B

argf_getc(void)
{

  • VALUE byte;
  • VALUE ch;

e$B$H$$$&$h$&$Ke(B ARGF e$B$bJQ$o$C$F$s$N$+$J!"$H5$$r;}$?$;$D$D$be(B

% echo | ./ruby -ve ‘p ARGF.getc’
ruby 1.9.0 (2006-06-11) [i686-linux]
10
% echo | ./ruby -ve ‘p ARGF.readchar’
ruby 1.9.0 (2006-06-11) [i686-linux]
10

e$B$H$$$&$h$&$K$J$C$F$$$J$$$H$+$O!"$"$^$j0U?^$5$l$F$$$k$h$&$K$Oe(B
e$B;W$($J$$$s$G$9$,$$$+$,$J$b$N$G$7$g$&$+!#e(B


#2

e$BKNIt$G$9!#$3$N>l9g$O$?$V$s0U?^$7$F$d$C$F$*$i$l$k$N$@$H;W$$$^$9$,!"$G$-$le(B
e$B$P0l7o$N%a!<%k$G$3$N$h$&$KBgNL$N%P%0$rJs9p$9$k$N$O$d$a$F$$$?$@$1$^$;$se(B
e$B$+!#%P%0%H%i%C%+!<$G4IM}$9$k$N$,BgJQ:$Fq$G$9!#e(B


#3

In article removed_email_address@domain.invalid,
URABE Shyouhei removed_email_address@domain.invalid writes:

e$BKNIt$G$9!#$3$N>l9g$O$?$V$s0U?^$7$F$d$C$F$*$i$l$k$N$@$H;W$$$^$9$,!"$G$-$le(B
e$B$P0l7o$N%a!<%k$G$3$N$h$&$KBgNL$N%P%0$rJs9p$9$k$N$O$d$a$F$$$?$@$1$^$;$se(B
e$B$+!#%P%0%H%i%C%+!<$G4IM}$9$k$N$,BgJQ:$Fq$G$9!#e(B

e$B$*$)!"$=$N$3$H$O$<$s$<$s9M$($F$$$^$;$s$G$7$?!#$J$k$[$I!#e(B

e$B$"$N$h$&$JBgNL$N%3%%C%H$,$^$H$a$F9T$o$l$J$1$l$P$3$N$h$&$J%a!<e(B
e$B%k$O=q$+$J$/$F$b$$$$$HM=A[$5$l$k$N$G!"$^$D$b$H$5$s$,H/8@$7$?e(B
e$BDL$j$K:#8e$A$c$s$HJ,3d$7$F%3%
%C%H$9$k$N$G$"$l$P!"$3$l$+$i$Oe(B
e$B5/$3$i$J$$$G$"$m$&!"$H$$$&$N$O$I$&$G$7$g$&$+!#e(B

e$B$H$$$&$N$O$=$l$O$=$l$H$7$F!"5$$K;_$a$F$*$-$^$9!#e(B


#4

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:28715] several problems on the big commit”
on Mon, 12 Jun 2006 00:10:14 +0900, Tanaka A. removed_email_address@domain.invalid
writes:
|
|e$B7o$NBg$-$J%3%%C%H$r$6$C$HD/$a$F$$?$N$G$9$,!"e(B
|
|% ./ruby -ve ’
|def m(a, b=:b, *c, d)
|p [a,b,c,d]
|end
|m(:x, :y)
|’
|ruby 1.9.0 (2006-06-11) [i686-linux]
|-e:2:in `m’: wrong number of arguments (ArgumentError)
| from -e:5
|
|e$B$H$$$&$h$&$KI,?\0z?t$,e(B a, d e$B$Ne(B 2e$B$D$7$+$J$$$N$Ke(B 2e$B0z?t$G8F$V$He(B
|ArgumentError e$B$K$J$k$H$+!"e(B

e$B8=>u$G$O1&$+$i@h$K%A%’%C%/$9$k$+$i$G$9$M!#Nd@E$K9M$($k$HI,?\e(B
e$B0z?t$r@h$K%P%$%s%I$9$Y$-$J$s$G$7$g$&!#D>$7$^$9!#e(B

|-#define VIS_MASK 7
|+#define VIS_LOCAL 8
|+#define VIS_MASK 16
|
|e$B$H$$$&$h$&$K!"e(BVIS_MASK e$B$,e(B 7 e$B$+$ie(B 16 e$B$K$J$C$F$$$k$H$+!"e(B

e$BD>$7$^$9!#e(B

| * ios.readchar => string
|
|e$B$H$J$C$F$$$k$K$b$+$+$o$i$:e(B
|
|% echo | ./ruby -ve ‘p STDIN.readchar’
|ruby 1.9.0 (2006-06-11) [i686-linux]
|10
|
|e$B$H$$$&$h$&$K@0?t$,JV$C$F$/$k$H$+!"e(B

e$BD>$7$^$9!#0J2<!"e(BARGFe$B$K$D$$$F$bF1MM!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)