guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can format procedure output unquoted strings?


From: Andy Wingo
Subject: Re: Can format procedure output unquoted strings?
Date: Tue, 12 Apr 2011 22:18:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Bradley,

On Tue 12 Apr 2011 17:44, "Whitlock, Bradley D" <address@hidden> writes:

> I am trying to get the format procedure to behave like the display procedure 
> where it will not surround output to stdout with quotes

Use ~a instead of ~s.

    scheme@(guile-user)> (format #t "~a\n" "foo")
    foo
    $1 = #t
    scheme@(guile-user)> (format #t "~s\n" "foo")
    "foo"
    $2 = #t

See "Formatted Output" in the manual for all the gory details.

Have fun with Guile,

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]