[Top][All Lists]

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

Strange reader bug (string->number)

From: Kjetil S. Matheussen
Subject: Strange reader bug (string->number)
Date: Sun, 2 Aug 2009 15:26:16 +0200 (CEST)

The following bug causes some problems
with Snd: (At least the realtime extension of Snd)

$ echo "'(4194304 262144 1.0f)" >test.scm
$ guile -l test.scm
In unknown file:
   ?: 0* [primitive-load "test.scm"]

<unnamed port>: In procedure string->number in expression (primitive-load name):
<unnamed port>: Value out of range: 444
$ *****************************

* Tested with Guile 1.8.6 and 1.8.0. Same behaviour for both.

* It only happens when using "guile -f <filename>" from the
  command line or evaluating (load <filename>) in the REPL.

* Evaluating '(4194304 262144 1.0f) in the REPL causes no error.

* Examples of lists not causing an error:

'(4194304 262144 1.0)
'(262144 1.0f)
'(4194304 1.0f)
'(1 2 3.0f)

reply via email to

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