From: Dave Thomas Date: 2004-03-18T08:34:44+09:00 Subject: Re: Rename #exception On Mar 17, 2004, at 17:09, Yukihiro Matsumoto wrote: > Not really the same purpose. > > * "exception" method is used for exception generation, not for > conversion. It takes arguments for initialization. > > * Kernel#raise calls "exception" method for the first argument, that > enables both "raise exception_class" and "raise exception_object". > Note that there is Exception.exception defined. Yes - the killer is the fact that the class version needs a parameter, and the instance version _can_ take one. Sigh - that's a shame: implementing String#to_exception just seemed like a neat idea. Cheers Dave