[#3305] Observable#notify_observers — shugo@... (maeda shugo)

前田です。

22 messages 1997/07/09

[#3329] meta programming features — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

44 messages 1997/07/11
[#3330] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/11

けいじゅ@今はフリー(^^;;;です.

[#3332] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/11

まつもと ゆきひろ%最終出社日です

[#3340] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/14

けいじゅ@今はフリー(^^;;;です.

[#3343] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/14

まつもと ゆきひろです

[#3345] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/14

けいじゅ@今はフリー(^^;;;です.

[#3346] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/14

まつもと ゆきひろです

[#3349] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/15

けいじゅ@今はフリー(^^;;;です.

[#3352] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/15

まつもと ゆきひろです

[#3353] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/15

けいじゅ@今はフリー(^^;;;です.

[#3357] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/15

まつもと ゆきひろです

[#3361] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/16

けいじゅ@今はフリー(^^;;;です.

[#3365] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/16

まつもと ゆきひろです

[#3366] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/16

けいじゅ@今はフリー(^^;;;です.

[#3391] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/18

まつもと ゆきひろです

[#3398] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/19

けいじゅ@今はフリー(^^;;;です.

[#3401] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/19

まつもと ゆきひろです

[#3406] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/22

けいじゅ@今はフリー(^^;;;です.

[#3410] Re: meta programming features — matz@... (Yukihiro Matsumoto) 1997/07/22

まつもと ゆきひろです

[#3415] Re: meta programming features — keiju@... (石塚圭樹 ) 1997/07/23

けいじゅ@今はフリー(^^;;;です.

[#3375] Exception — keiju@... (Keiju ISHITSUKA)

けいじゅ@今はフリー(^^;;です.

19 messages 1997/07/17
[#3383] Re: Exception — matz@... (Yukihiro Matsumoto) 1997/07/18

まつもと ゆきひろです

[#3388] Re: Exception — keiju@... (石塚圭樹 ) 1997/07/18

けいじゅ@今はフリー(^^;;;です.

[#3392] Re: Exception — matz@... (Yukihiro Matsumoto) 1997/07/18

まつもと ゆきひろです

[#3403] sorry for ruby-list trouble — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

18 messages 1997/07/22
[#3404] Re: sorry for ruby-list trouble — keiju@... (石塚圭樹 ) 1997/07/22

けいじゅ@今はフリー(^^;;;です.

[#3408] Re: sorry for ruby-list trouble — matz@... (Yukihiro Matsumoto) 1997/07/22

まつもと ゆきひろです

[#3414] Re: sorry for ruby-list trouble — keiju@... (石塚圭樹 ) 1997/07/23

けいじゅ@今はフリー(^^;;;です.

[#3420] Re: sorry for ruby-list trouble — matz@... (Yukihiro Matsumoto) 1997/07/23

まつもと ゆきひろです

[#3434] [Q] Thread — keiju@... (Keiju ISHITSUKA)

けいじゅ@今はフリー(^^;;です.

44 messages 1997/07/24
[#3444] Re: [Q] Thread — matz@... (Yukihiro Matsumoto) 1997/07/24

まつもと ゆきひろです

[#3455] Re: [Q] Thread — keiju@... (石塚圭樹 ) 1997/07/24

けいじゅ@今はフリー(^^;;;です.

[#3461] Re: [Q] Thread — matz@... (Yukihiro Matsumoto) 1997/07/25

まつもと ゆきひろです

[#3464] Re: [Q] Thread — keiju@... (石塚圭樹 ) 1997/07/25

けいじゅ@今はフリー(^^;;;です.

[#3483] Re: [Q] Thread — matz@... (Yukihiro Matsumoto) 1997/07/25

まつもと ゆきひろです

[#3528] Re: [Q] Thread — shugo@... (maeda shugo) 1997/07/28

前田です。

[#3537] Re: [Q] Thread — shugo@... (maeda shugo) 1997/07/29

前田です。

[#3542] Re: [Q] Thread — shugo@... (maeda shugo) 1997/07/30

前田です。

[ruby-list:3375] Exception

From: keiju@... (Keiju ISHITSUKA)
Date: 1997-07-17 04:09:36 UTC
List: ruby-list #3375
けいじゅ@今はフリー(^^;;です.

例外についてちょっと伺いたいことがあります.

現在の例外は, 発行された例外の(例外)クラスによって, 実際の例外を識別で
きるようになっていませんよね? 例えば, TypeErrorには:

bignum.c:1183:  TypeError("can't coerce %s to Bignum", rb_class2name(CLASS_OF(y)));
class.c:283:    TypeError("cannot define singleton");
error.c:171:    TypeError("wrong argument type %s (expected %s)",
eval.c:502:	TypeError("wrong argument type %s (expected String)",
eval.c:890:     TypeError("undefined superclass `%s'", rb_id2name(node->nd_mid));
eval.c:893:     TypeError("undefined superclass `%s'", rb_id2name(node->nd_vid));
eval.c:895:     TypeError("superclass undefined");
eval.c:1003:	TypeError("trace_func needs to be Proc");
eval.c:1745:    TypeError("Can't define method \"%s\" for Fixnum",
eval.c:1749:    TypeError("Can't define method \"%s\" for nil",
eval.c:1753:    TypeError("Can't define method \"%s\" for special constants",
eval.c:1809:    TypeError("%s is not a class", rb_id2name(node->nd_cname));
eval.c:1819:    TypeError("superclass mismatch for %s",
eval.c:1847:    TypeError("%s is not a module", rb_id2name(node->nd_cname));
eval.c:1870:    TypeError("No virtual class for Fixnums");
eval.c:1873:    TypeError("No virtual class for nil");
eval.c:1876:    TypeError("No virtual class for special constants");
eval.c:2538:    TypeError("class or module required for rescue clause");
eval.c:3209:    TypeError("wrong argument type %s (expected Proc/Binding)",
eval.c:4214:	TypeError("wrong argument type %s (expected Thread)",
io.c:786:       if (f == 0) TypeError("non-writable fptr");
io.c:1181:	TypeError("$< must have write method, %s given",
io.c:1425:	TypeError("value of %s must be String", rb_id2name(id));
numeric.c:51:	TypeError("coerce must return [x, y]");
numeric.c:75:	TypeError("coerce must return [x, y]");
numeric.c:434:  TypeError("failed to convert %s into Integer",
object.c:94:	TypeError("can't clone %s", rb_class2name(CLASS_OF(obj)));
object.c:207:	TypeError("class or module required");
object.c:241:	TypeError("class or module required");
object.c:299:	TypeError("tried to add %s(%s) to nil",
object.c:486:   TypeError("failed to convert %s into Float", rb_class2name(CLASS_OF(val)));
string.c:285:	TypeError("can't modify frozen string");
string.c:482:	TypeError("type mismatch");
string.c:543:	TypeError("Type mismatch: %s given", rb_class2name(CLASS_OF(sub)));
time.c:129:     TypeError("Can't convert %s into Time",
variable.c:605:	TypeError("class %s can not have instance variables",
variable.c:631:	TypeError("class %s can not have instance variables",

こんなにたくさんあります.

これでは, 実際の例外を識別するのに文字列で区別しなくてはなりません.

例外クラスの目的は, 例外の識別にあると思っていたのですが... そういうも
のではないんですか?

__
.........................................石塚 圭樹@今はフリー(^^;;...
------->>また, アドレス変わりました!! e-mail: keiju@bc.mbn.or.jp <<---

In This Thread

Prev Next