This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
How use formatted output in `print` method?
- From: Yaroslav Kavenchuk <kavenchuk at gmail dot com>
- To: kawa at sourceware dot org
- Date: Fri, 28 Dec 2007 10:42:51 +0200
- Subject: How use formatted output in `print` method?
In declaration
(define-simple-class <my-class> (<java.lang.Object> <gnu.text.Printable>)
...
((print out :: <gnu.lists.Consumer>) :: #!void
...))
this statements
(out:write (format #f ...))
and
(out:write (String (format #f ...)))
generate warnings.
How do it?
Thanks!
--
WBR, Yaroslav Kavenchuk.