Version française
Home     About     Download     Resources     Contact us    
Browse thread
commands.getoutput () in ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] commands.getoutput () in ocaml?
On Thu, Aug 23, 2007 at 12:35:14AM +0200, Olivier Andrieu wrote:
> you could use Buffer.add_substring instead of add_string, that will
> avoid an intermediate copy of the string

And you can use Buffer.add_channel to avoid intermediate strings
altogether (until the final Buffer.to_string).

-- 
Eric Cooper             e c c @ c m u . e d u