bug-guile
[Top][All Lists]
Advanced

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

format with ######F


From: Bill Schottstaedt
Subject: format with ######F
Date: 17 Jun 2003 05:02:15 -0700

Another oddity in ice-9/format.scm:

guile> (use-modules (ice-9 format))
guile> (format #f "~,######F" 123.123)
"1231.2"

ACL has a similar bug:

USER(1): (format nil "~,######F" 123.123)
"123.1"

but CMU-CL and Clisp flag it as an error.



By the way, "Common Lisp the Language" says (page 581):
"it is not an error if one or more arguments remain
unprocessed by the directive", but:

guile> (format #f "~A" 1 2)

FORMAT: error with call: (format #f "~A<===" 1 ===>2 )
        1 superfluous argument



And not really a bug, I guess, but this strikes me as
weird:

guile> (format #f "~,,,,,,,F" 123.123)
"123.123"






reply via email to

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