bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (number? '1e311)


From: Ludovic Courtès
Subject: Re: (number? '1e311)
Date: Wed, 19 Nov 2008 22:48:20 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hi,

Sorry for the late reply.

"Bill Schottstaedt" <address@hidden> writes:

> I think number? should not signal an error -- it should
> return either #t or #f:
>
> guile> (number? '1e310)
> ERROR: In procedure string->number:
> ERROR: Value out of range: 310
> ABORT: (out-of-range)
> guile> ERROR: In procedure scm_read_expression:
> ERROR: standard input:1:17: unexpected ")"
> ABORT: (read-error)

The error is not raised by `number?', it's raised by the reader, which
uses `string->number' internally.

Thanks,
Ludo'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]