unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* format with ######F
@ 2003-06-17 12:02 Bill Schottstaedt
  2003-06-19 20:45 ` Marius Vollmer
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2003-06-17 12:02 UTC (permalink / raw)
  Cc: bil

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"




_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: format with ######F
  2003-06-17 12:02 format with ######F Bill Schottstaedt
@ 2003-06-19 20:45 ` Marius Vollmer
  2003-06-21 12:15   ` Bill Schottstaedt
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Vollmer @ 2003-06-19 20:45 UTC (permalink / raw)
  Cc: bug-guile

Bill Schottstaedt <bil@ccrma.Stanford.EDU> writes:

> Another oddity in ice-9/format.scm:

Thanks, I recorded this in our backwater bug database, but I'm afraid
I'll need a patch for fixing this... do you have any?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: format with ######F
  2003-06-19 20:45 ` Marius Vollmer
@ 2003-06-21 12:15   ` Bill Schottstaedt
  2003-09-12 15:19     ` Marius Vollmer
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2003-06-21 12:15 UTC (permalink / raw)
  Cc: bug-guile

>> Another oddity in ice-9/format.scm:
> Thanks, I recorded this in our backwater bug database, but I'm afraid
> I'll need a patch for fixing this... do you have any?

Perhaps this will do it (line 740):

	       (if param-value-found (format:error "misplaced '#'"))

as in:

	      ((#\#)	; Parameter is number of remaining args
	       (if param-value-found (format:error "misplaced '#'"))
	       (if modifier (format:error "misplaced modifier"))




_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: format with ######F
  2003-06-21 12:15   ` Bill Schottstaedt
@ 2003-09-12 15:19     ` Marius Vollmer
  0 siblings, 0 replies; 4+ messages in thread
From: Marius Vollmer @ 2003-09-12 15:19 UTC (permalink / raw)
  Cc: bug-guile

Bill Schottstaedt <bil@ccrma.Stanford.EDU> writes:

>>> Another oddity in ice-9/format.scm:
>> Thanks, I recorded this in our backwater bug database, but I'm afraid
>> I'll need a patch for fixing this... do you have any?
>
> Perhaps this will do it (line 740):
>
> 	       (if param-value-found (format:error "misplaced '#'"))

Done, thanks!

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-12 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 12:02 format with ######F Bill Schottstaedt
2003-06-19 20:45 ` Marius Vollmer
2003-06-21 12:15   ` Bill Schottstaedt
2003-09-12 15:19     ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).