[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] [scheme-reports-wg1] Unintended consequences of #319
My feeling (which I don't feel strongly about):
(string->number "#x10") ==> 16
(string->number "#x10" 8) ==> #f
(string->number "#x10" 10) ==> #f
I.e. if you specify a radix argument, then it's an error to have
a radix prefix. If you don't specify a radix argument, then the
default is 10, but a radix prefix is allowed, just as with read.
--
--Per Bothner
per@x http://per.bothner.com/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports