From: Max Skaller <maxs@in.ot.com.au>
To: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: convenient features
Date: Fri, 30 Jun 2000 10:42:27 +1000 [thread overview]
Message-ID: <395BECF3.23389442@in.ot.com.au> (raw)
In-Reply-To: <20000629111918.K28841@jaune.inria.fr>
Daniel de Rauglaudre wrote:
> If Ocaml chooses for you, it can be a problem if you want to make side
> effects in some order while executing these modules.
Then you could either:
1) add a dummy dependency in, to force the ordering
This is a hack, but so is using side effects to initialise modules :-)
2) think about a language feature to replace the dummy
dependency. In Python, you have to explicitly import a module
before you can use it. In C, you have to explicitly #include a file
before you can use the resources it represents the interface for.
In ocaml, the lack of such a requirement could be viewed as a design
flaw:
it is hard to tell what a module depends on by inspection ( you have too
look
at every line of code carefully to find which names are module names).
An 'import' or 'use' statement might also allow a local name for the
module.
(Unlike 'open', a such a statement doesn't make the symbols defined in
the
module available unqualified).
A possible extension: to instantiate a functor (i.e. use an instance
of a functor module).
--
John (Max) Skaller at OTT [Open Telecommications Ltd]
mailto:maxs@in.ot.com.au -- at work
mailto:skaller@maxtal.com.au -- at home
prev parent reply other threads:[~2000-06-30 15:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-28 9:44 David Chemouil
2000-06-28 17:09 ` David Brown
2000-06-28 17:29 ` Markus Mottl
2000-06-29 16:57 ` Pierre Weis
2000-06-30 9:22 ` Christophe Raffalli
2000-06-30 18:10 ` Jean-Christophe Filliatre
2000-06-29 8:55 ` David Mentré
2000-06-29 9:19 ` Daniel de Rauglaudre
2000-06-30 0:42 ` Max Skaller [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=395BECF3.23389442@in.ot.com.au \
--to=maxs@in.ot.com.au \
--cc=caml-list@inria.fr \
--cc=daniel.de_rauglaudre@inria.fr \
/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