From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 73BB77ED26 for ; Tue, 5 Jun 2012 10:53:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqMCAH3IzU/U4xELlGdsb2JhbABFtDIiAQEBAQkJCwkSKYIYAQEEAScTPwULCyElDwEEDRshE4d8AQMGCa0CHysNiU6KM4ZwA5pYg2OBW4dd X-IronPort-AV: E=Sophos;i="4.75,718,1330902000"; d="scan'208";a="161385190" Received: from mout.web.de ([212.227.17.11]) by mail1-smtp-roc.national.inria.fr with ESMTP; 05 Jun 2012 10:53:58 +0200 Received: from frosties.localnet ([95.208.118.96]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MGRZc-1Sp5412KjA-00Dfj8; Tue, 05 Jun 2012 10:53:57 +0200 Received: from mrvn by frosties.localnet with local (Exim 4.77) (envelope-from ) id 1SbpWX-0006ew-3C; Tue, 05 Jun 2012 10:53:57 +0200 From: Goswin von Brederlow To: Diego Olivier Fernandez Pons Cc: Gabriel Scherer , caml-list References: Date: Tue, 05 Jun 2012 10:53:57 +0200 In-Reply-To: (Diego Olivier Fernandez Pons's message of "Mon, 4 Jun 2012 21:12:57 +0200") Message-ID: <87d35ecf6i.fsf@frosties.localnet> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Provags-ID: V02:K0:kZkxy88l93OVNVJAbi9qbaFht3Yj6RndXXXIU6t6J5Y H/Zf4ccUwkUA38unnyR7mRRfXUAaohRMtI4lzbIGcGyVNpoIFY +OtxqSeTqiPUjL5STbLIfpDxQFnXXFBraA6i7hoPAepFwUfw4u I7V/VSeODhZFyzWRKmTUSAHAj9+bh+8Q+qxhS5EcT+C0KKvQiW /2nZ/REKgqYc5ZuCR1o0g== Subject: Re: [Caml-list] Puzzled by Scanf.Scanning.in_channel Diego Olivier Fernandez Pons writes: > Gabriel, > >> You should use bscanf: >> >> # Scanf.fscanf;; >> - : in_channel -> ('a, 'b, 'c, 'd) Scanf.scanner = >> # Scanf.bscanf;; >> - : Scanf.Scanning.in_channel -> ('a, 'b, 'c, 'd) Scanf.scanner = > > Thanks. My I ask what is the difference between in_channel and > Scanf.Scanning.in_channel ? > > Diego Olivier Well, one is an in_channel and one is a Scanf.Scanning.in_channel. :) You can look at the type definition of both of them in the source to see the specific differences and similarities. MfG Goswin