Hi,

I am looking for the Julia equivalent of the Common Lisp macro/idiom
WITH-OUTPUT-TO-STRING, eg

(with-output-to-string (s)
  (format s "foo")
  (format s "bar")) ; => "foobar"

I looked at the Text I/O section of the manual but didn't find anything
similar.

If this does not exist, a few hints on how to accumulate strings in an
IOstream would point me in the right direction, I think I can write the
macro part.

Best,

Tamas

Reply via email to