Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.

Next: , Previous: , Up: SRFI Support   [Contents][Index]


7.5.20 SRFI-28 - Basic Format Strings

SRFI-28 provides a basic format procedure that provides only the ~a, ~s, ~%, and ~~ format specifiers. You can import this procedure by using:

(use-modules (srfi srfi-28))
Scheme Procedure: format message arg …

Returns a formatted message, using message as the format string, which can contain the following format specifiers:

~a

Insert the textual representation of the next arg, as if printed by display.

~s

Insert the textual representation of the next arg, as if printed by write.

~%

Insert a newline.

~~

Insert a tilde.

This procedure is the same as calling simple-format (see Writing) with #f as the destination.