This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: message primitive
- To: "Greg J. Badros" <gjb at cs dot washington dot edu>
- Subject: Re: message primitive
- From: mstachow at alum dot mit dot edu
- Date: Sun, 09 Jan 2000 00:44:07 -0500
- CC: guile at sourceware dot cygnus dot com
- References: <qrriu14jfbt.fsf@clavicle.cs.washington.edu>
"Greg J. Badros" wrote:
>
> The error handling code has a printf-like formatting capability such
> that %S and %s format subsequent arguments as write or display style
> output, respectively. This seems generally useful, but is not available
> at the scheme level, directly-- at least not that I can find [closest is
> `display-error':
>
> SCM_DEFINE (scm_display_error, "display-error", 6, 0, 0,
> (SCM stack, SCM port, SCM subr, SCM message, SCM args, SCM rest),
>
> but that has extra STACK PORT and SUBR arguments. Would others like a
> `message' primitive that would work like so:
>
> (message "Foo: %S %s" (list "a" "b"))
>
> outputs:
>
> Foo: "a" b
>
> ?
That sounds really similar to `format'.
- Maciej