Re: [Scheme-reports] [scheme-reports-wg1] Unintended consequences of #319 Per Bothner (11 Apr 2012 17:43 UTC)

Re: [Scheme-reports] [scheme-reports-wg1] Unintended consequences of #319 Per Bothner 11 Apr 2012 17:42 UTC

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@bothner.com   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports