From: ts Date: 2002-04-12T22:56:25+09:00 Subject: Re: exceptions that are not Exceptions >>>>> "P" == Paul Brannan writes: P> If this is a bug in the extension, then why is it allowed at all? Well, in README.EXT void rb_raise(VALUE exception, const char *fmt, ...) Raises an exception of class exception. The fmt is the format string just like printf(). P> rb_f_raise checks rb_obj_is_kind_of(val, rb_eException). errinfo_setter P> also makes this check. Why not have rb_exc_raise also make this check? rb_f_raise() is the implementation of #raise errinfo_setter is used when you write, for example : "$! = RunTimeError.new" This is not the same : if at C level you can follow the specification it seems for me that the problem exist in the extension. Guy Decoux