Exception by throw

e$B$U$H5$$,$D$$$?$s$G$9$,!"e(Bthrow e$B$GBP1~$9$ke(B catch
e$B$,$J$$$H$-$Ne(B
e$BNc30$,JQ2=$7$F$$$^$9!#e(B

% ./ruby -e ‘throw “a”’
-e:1:in throw': uncaught throw "a" (ArgumentError) from -e:1:in

% ruby-1.8 -e ‘throw “a”’
-e:1:in throw': uncaught throwa’ (NameError)
from -e:1

e$B$3$l$O0U?^$5$l$?$b$N$G$7$g$&$+!#e(B

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

In message “Re: [ruby-dev:36763] Re: exception by throw”
on Fri, 17 Oct 2008 19:31:33 +0900, Yukihiro M.
[email protected] writes:

||e$B$U$H5$$,$D$$$?$s$G$9$,!“e(Bthrow e$B$GBP1~$9$ke(B catch e$B$,$J$$$H$-$Ne(B
||e$BNc30$,JQ2=$7$F$$$^$9!#e(B
||
||% ./ruby -e ‘throw “a”’
||-e:1:in throw': uncaught throw "a" (ArgumentError) || from -e:1:in
||
||% ruby-1.8 -e ‘throw “a”’
||-e:1:in throw': uncaught throw a’ (NameError)
|| from -e:1
||
||e$B$3$l$O0U?^$5$l$?$b$N$G$7$g$&$+!#e(B
|
|e$B$O$$!#e(BNameErrore$B$OJQ?t!”%a%=%C%I!“Dj?t$,B8:_$7$J$$6ILL$K8BDj$7e(B
|e$B$h$&$H;W$C$F$N$3$H$G$9!#$J$s$i$+$N8_49@-LdBj$,$”$l$P!":F8!F$e(B
|e$B$7$^$9$,!#e(B

e$B:#2s$N;XE&$r<u$1$F!"2~$a$F9M$($F$$?$N$G$9$,!“e(Bcatch/throwe$B$N%ie(B
e$B%Y%k$be(BNameErrore$B$NBP>]$K4^$a$F$^$:$$$3$H$O$J$$$N$G!”$`$d$
$Ke(B
1.8e$B$H$NHs8_49@-$rA}$9I,MW$b$J$$$N$G!"e(BArgumentErrore$B$+$ie(B
NameErrore$B$KLa$=$&$H;W$$$^$9!#e(B

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

e$B$&$&!"FsE>;0E>$7$F$^$9e(B…e$B!#e(B

In message “Re: [ruby-dev:36782] Re: exception by throw”
on Sat, 18 Oct 2008 22:04:08 +0900, Yukihiro M.
[email protected] writes:

||e$B$O$$!#e(BNameErrore$B$OJQ?t!"%a%=%C%I!"Dj?t$,B8:$7$J$$6ILL$K8BDj$7e(B
||e$B$h$&$H;W$C$F$N$3$H$G$9!#$J$s$i$+$N8_49@-LdBj$,$“$l$P!”:F8!F$e(B
||e$B$7$^$9$,!#e(B
|
|e$B:#2s$N;XE&$r<u$1$F!"2~$a$F9M$($F$
$?$N$G$9$,!“e(Bcatch/throwe$B$N%ie(B
|e$B%Y%k$be(BNameErrore$B$NBP>]$K4^$a$F$^$:$$$3$H$O$J$$$N$G!”$`$d$_$Ke(B
|1.8e$B$H$NHs8_49@-$rA}$9I,MW$b$J$$$N$G!"e(BArgumentErrore$B$+$ie(B
|NameErrore$B$KLa$=$&$H;W$$$^$9!#e(B

e$B$H;W$C$F:n6H$r3+;O$7$?$N$G$9$,!"e(B1.9e$B$G$O!V%i%Y%k!W$,%7%s%%k$Ge(B
e$B$J$$G$0U$N%*%V%8%‘%/%H$r;H$($^$7$?e(B(equal?e$B$N4X78$G%A%’%C%/e(B)e$B!#e(B
e$B$H$$$&$3$H$O!VL>A0!W$G$O$J$$$o$1$G$9$M!#$D$^$j!"e(BNameErrore$B$O;He(B
e$B$($^$;$s$M!#e(B

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

In message “Re: [ruby-dev:36758] exception by throw”
on Fri, 17 Oct 2008 02:40:52 +0900, Tanaka A. [email protected]
writes:

|e$B$U$H5$$,$D$$$?$s$G$9$,!"e(Bthrow e$B$GBP1~$9$ke(B catch e$B$,$J$$$H$-$Ne(B
|e$BNc30$,JQ2=$7$F$$$^$9!#e(B
|
|% ./ruby -e ‘throw “a”’
|-e:1:in throw': uncaught throw "a" (ArgumentError) | from -e:1:in
|
|% ruby-1.8 -e ‘throw “a”’
|-e:1:in throw': uncaught throw a’ (NameError)
| from -e:1
|
|e$B$3$l$O0U?^$5$l$?$b$N$G$7$g$&$+!#e(B

e$B$O$$!#e(BNameErrore$B$OJQ?t!“%a%=%C%I!“Dj?t$,B8:_$7$J$$6ILL$K8BDj$7e(B
e$B$h$&$H;W$C$F$N$3$H$G$9!#$J$s$i$+$N8_49@-LdBj$,$”$l$P!”:F8!F$e(B
e$B$7$^$9$,!#e(B