sperber at deinprogramm.de
Mon Mar 23 03:03:17 EDT 2009
"R. Kent Dybvig" <dyb at cs.indiana.edu> writes:
>> > The R6RS states string->number NEVER raises an exception and ALWAYS returns
>> > a number or #f.
>> > Does that mean even if one passes a non-string and/or an invalid radix (not
>> > a number or not 2/8/10/16) it should return #f?
>> Yes. This was discussed at some length among the editors, for example,
> I don't believe we ever intended string->number not to raise an exception
> if passed something other than a string or if passed, say, 18 arguments,
> the wording "never raises an exception" in its description
> notwithstanding. So it seems to me that while (string->number "3/0") must
> return #f, (string->number 3) and (string->number) must raises exceptions.
I'm sorry about the confusion - I somehow missed the "non-string" part.
Should I add an erratum for this?
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
More information about the r6rs-discuss