From: Jean-Francois Monin <JeanFrancois.Monin@cnet.francetelecom.fr>
To: Christian RINDERKNECHT <rinderkn@hugo.int-evry.fr>
Cc: skaller <skaller@maxtal.com.au>, caml-list@inria.fr
Subject: Re: Undefined labels
Date: Fri, 12 Nov 1999 18:11:04 +0100 [thread overview]
Message-ID: <199911121711.SAA18326@lsun565.lannion.cnet.fr> (raw)
In-Reply-To: <19991112134711.B645@jones.int-evry.fr>
> (Unix.fstat argument).Unix.st_kind
> ^^^^
> > Using 'open Unix' is unacceptable.
>
> I also never use the "open" feature, but the consequence is, when using
> nested records, I must qualify all the labels (as in your example),
> and the code becomes unreadable.
Not so unreadable if you declare
module U=Unix
This can be local to a (group of) function(s), e.g.
let f,g =
let module U = Unix in
let f argument = (U.fstat argument).U.st_kind in
let g = 5
in f,g;;
Jean-Francois
next prev parent reply other threads:[~1999-11-15 7:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-14 0:58 Announcement: automatically resizing arrays Markus Mottl
1999-11-11 11:39 ` Undefined labels skaller
1999-11-12 9:28 ` Jean-Christophe Filliatre
1999-11-12 23:01 ` skaller
1999-11-12 9:54 ` William Chesters
1999-11-12 12:47 ` Christian RINDERKNECHT
1999-11-12 17:11 ` Jean-Francois Monin [this message]
1999-11-12 17:06 Manuel Fahndrich
1999-11-16 0:30 ` Brian Rogoff
1999-11-19 14:35 ` Anton Moscal
1999-11-17 9:54 ` Gerard Huet
1999-11-18 20:08 ` David Brown
1999-11-19 16:18 ` Markus Mottl
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=199911121711.SAA18326@lsun565.lannion.cnet.fr \
--to=jeanfrancois.monin@cnet.francetelecom.fr \
--cc=caml-list@inria.fr \
--cc=rinderkn@hugo.int-evry.fr \
--cc=skaller@maxtal.com.au \
/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;
as well as URLs for NNTP newsgroup(s).