GNU bug report logs -
#20512
bogus warning with (format) and ~{ ~}
Previous Next
Full log
Message #8 received at 20512 <at> debbugs.gnu.org (full text, mbox):
I encounter similar behavior, but for dynamic padding, but it one case
it doesn't even work. I am using guile 2.2.6 from guix distro
scheme@(guile-user)> (format #f "~:{~v_ ~a ~}" '((5 "hello")))
FORMAT: error with call: (format #f "~:{~v_ ~a ~}<===" ((5 hello)) ===>)
missing argument(s)
In ice-9/format.scm:
1590:19 2 (format #f "~:{~v_ ~a ~}" ((5 "hello")))
197:20 1 (format:format-work "~:{~v_ ~a ~}" (((5 "hello"))))
In unknown file:
0 (scm-error misc-error #f "~A" ("error in format") #f)
error in format
Added the bogus 0 which doesn't do anything
scheme@(guile-user)> (format #f "~:{~v_ ~a ~}" 0 '((5 "hello")))
;;; <stdin>:3:0: warning: "~:{~v_ ~a ~}": wrong number of `format' arguments: expected 1, got 2
$1 = " hello "
--
Alexey
This bug report was last modified 5 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.