From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA08237; Mon, 11 Jun 2001 13:21:31 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA08591 for caml-list@pauillac.inria.fr; Mon, 11 Jun 2001 13:21:31 +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 QAA28744 for ; Sun, 10 Jun 2001 16:31:38 +0200 (MET DST) Received: from localhost.localdomain (jimbo109.zip.com.au [202.7.67.109]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f5AEVYj23676 for ; Sun, 10 Jun 2001 16:31:35 +0200 (MET DST) Received: from ozemail.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id AAA29333; Mon, 11 Jun 2001 00:31:26 +1000 Message-ID: <3B2384BE.5587F31F@ozemail.com.au> Date: Mon, 11 Jun 2001 00:31:26 +1000 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: Tore Lund CC: caml-list@inria.fr Subject: Re: [Caml-list] Evaluation Order References: <001501c0f139$9ce86640$210148bf@dylan> <5.1.0.14.0.20010609175833.03bdda20@chasm.org> <3B235796.73CA31A@online.no> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Tore Lund wrote: > # let _ = > print_string "before"; > print_string "MIDDLE"; > print_string "after";; > beforeMIDDLEafter- : unit = () > > but not in this one: > > # let _ = > print_string "before"; > Format.print_string "MIDDLE"; > print_string "after";; > beforeafterMIDDLE- : unit = () > > What's going on here? Buffering I guess. print_string buffers using stdio buffers. Format.* has its own buffer, which is flushed into the stdout buffer too late. -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr