From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA15335 for caml-redistribution; Thu, 16 Oct 1997 18:17:46 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA07885 for ; Thu, 16 Oct 1997 12:19:22 +0200 (MET DST) Received: from cosmos.imag.fr (cosmos.imag.fr [147.171.130.1]) by nez-perce.inria.fr (8.8.7/8.8.5) with ESMTP id MAA03913 for ; Thu, 16 Oct 1997 12:19:20 +0200 (MET DST) From: GillesDfnx@mail.dotcom.fr Received: from pogo.imag.fr (defourne@pogo.imag.fr [147.171.130.104]) by cosmos.imag.fr (8.8.5/8.8.5) with SMTP id MAA04691 for ; Thu, 16 Oct 1997 12:19:19 +0200 (MET DST) Date: Thu, 16 Oct 1997 12:19:19 +0200 (MET DST) Message-Id: <199710161019.MAA04691@cosmos.imag.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable To: caml-list@inria.fr Subject: 'a -> string ? X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Reply-To: GillesDfnx@mail.dotcom.fr Sender: weis Bonjour, je cherche une fonction similaire à val output_value : out_channel -> 'a -> unit mais qui écrirait la représentation de l'élément de type 'a dan= s une 'string' au lieu d'un 'out_channel' (pour pouvoir le sauver dans dbm après). Je voudrais éviter de recourir à un fichier temporaire su= ivi d'un appel à 'input'. Quelqu'un s'est-il déjà penché sur le problème ? Merci, Gilles --- english --- Hello, I'm looking for an equivalent of val output_value : out_channel -> 'a -> unit that would output the representation of the element of type 'a into a 'string' instead of and 'out_channel' (for subsequent inclusion into a dbm database). I would like to avoid using a temp file followed by an 'input' call. Has anybody already designed such a function ? Thank you, Gilles -- \\/// #include (O O) --------------------------------------------oOo--(_)--oOo-------- Gilles DEFOURNEAUX \ / Automated Deduction Team | ATINF project - LEIBNIZ lab --|-- Grenoble, FRANCE 0 GillesDfnx@mail.dotcom.fr