guile-user
[Top][All Lists]
Advanced

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

Re: symbol printing problem


From: Nala Ginrut
Subject: Re: symbol printing problem
Date: Mon, 08 Aug 2016 21:11:45 +0800

Unfortunately (or maybe fortunately), num_s_num is a special case to
indicate float numbers. For example, 1s2 is 100.0, 1s3 is 1000.0, etc.
When you try to create a symbol '912828S7912810RS, it's recogized as a
very large number which is out of range.

I think this could be a bug in Guile. It's failed to read the symbol
literal. The same code works in racket and chezscheme.

On Mon, 2016-08-08 at 18:04 +0530, Anand Mohanadoss wrote:
> Hi,
> 
> We observed the following with guile 2.0.11 -
> 
> scheme@(guile-user)> (define sym '912828S7912810RS)
> While reading expression:
> ERROR: In procedure string->number: Value out of range: 7912810
> 
> Is this expected?  Do we need to enable any read-options?  If this is
> expected, it appears that if we are creating symbols from random
> data, we
> need to do a symbol->string before printing it.  Is this the
> recommendation
> or should we do something else?
> 
> Thank you!
> Anand




reply via email to

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