unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Whitlock\, Bradley D" <bradley.d.whitlock@lmco.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Can format procedure output unquoted strings?
Date: Tue, 12 Apr 2011 19:38:49 -0400	[thread overview]
Message-ID: <87oc4b6nw6.fsf@netris.org> (raw)
In-Reply-To: <D6D90A401251394A86F1F98B1E2B6842169948282B@HVXMSP8.us.lmco.com> (Bradley D. Whitlock's message of "Tue, 12 Apr 2011 11:44:52 -0400")

"Whitlock, Bradley D" <bradley.d.whitlock@lmco.com> 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" in the format string, which formats the corresponding argument
like `display', whereas "~S" formats like `write'.  For example:

  (format #t "The value is ~A~%" "test") outputs: The value is test
  (format #t "The value is ~S~%" "test") outputs: The value is "test"

     Mark



      parent reply	other threads:[~2011-04-12 23:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12 15:44 Can format procedure output unquoted strings? Whitlock, Bradley D
2011-04-12 20:18 ` Andy Wingo
2011-04-12 20:58 ` Thien-Thi Nguyen
2011-04-12 23:38 ` Mark H Weaver [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oc4b6nw6.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=bradley.d.whitlock@lmco.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).