From: Goswin von Brederlow <goswin-v-b@web.de>
To: Diego Olivier Fernandez Pons <dofp.ocaml@gmail.com>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Puzzled by Scanf.Scanning.in_channel
Date: Tue, 05 Jun 2012 10:53:57 +0200 [thread overview]
Message-ID: <87d35ecf6i.fsf@frosties.localnet> (raw)
In-Reply-To: <CAHqiZ-+JbjgEkPPwPeZKgXEEqW7N-+1286wTvpJPVQweWiDzXQ@mail.gmail.com> (Diego Olivier Fernandez Pons's message of "Mon, 4 Jun 2012 21:12:57 +0200")
Diego Olivier Fernandez Pons <dofp.ocaml@gmail.com> writes:
> Gabriel,
>
>> You should use bscanf:
>>
>> # Scanf.fscanf;;
>> - : in_channel -> ('a, 'b, 'c, 'd) Scanf.scanner = <fun>
>> # Scanf.bscanf;;
>> - : Scanf.Scanning.in_channel -> ('a, 'b, 'c, 'd) Scanf.scanner = <fun>
>
> 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
prev parent reply other threads:[~2012-06-05 8:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 18:59 Diego Olivier Fernandez Pons
2012-06-04 19:10 ` Gabriel Scherer
2012-06-04 19:12 ` Diego Olivier Fernandez Pons
2012-06-05 8:53 ` Goswin von Brederlow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d35ecf6i.fsf@frosties.localnet \
--to=goswin-v-b@web.de \
--cc=caml-list@inria.fr \
--cc=dofp.ocaml@gmail.com \
--cc=gabriel.scherer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox