[Scheme-reports] Three really picky points Vincent Manis (11 Jan 2012 03:29 UTC)
Re: [Scheme-reports] Three really picky points Alex Shinn (11 Jan 2012 03:41 UTC)
Re: [Scheme-reports] Three really picky points Vincent Manis (11 Jan 2012 06:33 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (11 Jan 2012 07:10 UTC)
Re: [Scheme-reports] Three really picky points Alex Shinn (11 Jan 2012 13:43 UTC)
Re: [Scheme-reports] Three really picky points Vincent Manis (11 Jan 2012 16:19 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (11 Jan 2012 17:32 UTC)
Re: [Scheme-reports] Three really picky points Alex Shinn (12 Jan 2012 12:48 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (11 Jan 2012 18:21 UTC)
Re: [Scheme-reports] Three really picky points Vincent Manis (12 Jan 2012 00:57 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (13 Jan 2012 01:28 UTC)
Re: [Scheme-reports] Three really picky points Vincent Manis (13 Jan 2012 02:02 UTC)
Re: [Scheme-reports] Three really picky points Vincent Manis (14 Jan 2012 18:35 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (15 Jan 2012 10:05 UTC)
Re: [Scheme-reports] Three really picky points Alex Shinn (15 Jan 2012 11:23 UTC)
Re: [Scheme-reports] Three really picky points John Cowan (15 Jan 2012 20:42 UTC)

Re: [Scheme-reports] Three really picky points Alex Shinn 15 Jan 2012 11:22 UTC

On Sun, Jan 15, 2012 at 7:04 PM, John Cowan <cowan@mercury.ccil.org> wrote:
> Vincent Manis scripsit:
>
>> It's obvious that string->number and read should use the same
>> conversion routine;
>
> That's what I thought too.  But Chibi uses two different routines, because
> `read` terminates on the first delimiter, whereas string->number returns
> #f if not all of the string is a number.  Still, that doesn't mean they
> should not be consistent.

Chibi's string->number is currently a wrapper around read,
unless you specify a non-decimal base in which case it
shortcuts to the internal sexp_read_number used by read.

It wouldn't be possible to specify read and string->number
are the same for non-decimal base arguments to string->number,
because read doesn't have this argument.

--
Alex

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