On Wed, Oct 02, 2002 at 02:11:24AM +0900, GOTO Kentaro wrote:
> At Wed, 2 Oct 2002 01:37:46 +0900,
> Dave Thomas wrote:
> 
> > William Djaja Tjokroaminata <billtj / y.glue.umd.edu> writes:
> > 
> > >     "a string".to_f    # >> 0.0, and no runtime error
> > 
> > I've always thought this was a bug in the libraries  :)
> 
> But we have Float("a string") which raises ArgumentError :)

But Float(xyz) is not easily overridable for new types.  I think I'd
like to see a to_flt that defaults to using to_f, but for Strings will
do error checking (see RCR#109).

Paul