caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anton Moscal <msk@post.tepkom.ru>
To: Brian Rogoff <bpr@best.com>
Cc: caml-list@inria.fr
Subject: RE: Undefined labels
Date: Fri, 19 Nov 1999 17:35:28 +0300 (MSK)	[thread overview]
Message-ID: <Pine.LNX.4.10.9911191731090.24672-100000@post.tepkom.ru> (raw)
In-Reply-To: <Pine.BSF.4.10.9911151627270.23897-100000@shell5.ba.best.com>


On Mon, 15 Nov 1999, Brian Rogoff wrote:

> > This is the standard example for why we need a local open in the language.
> > 
> > -Manuel
> 
> Let me second that motion. Coming from Ada, I always wondered why OCaml
> doesn't allow you to restrict the scope of open, instead of putting it 
> always at module level.

This construction can be easy simulated by `let module' construction:

let open M in E 
 =>
let module _TEMP = struct 
   open M;
   let __RES = E
end
in __RES

I implement this conversion for my own use by camlp4 as syntax extension
(with other local declarations: let type, let exception, etc.)

Anton




  reply	other threads:[~1999-11-19 18:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-12 17:06 Manuel Fahndrich
1999-11-16  0:30 ` Brian Rogoff
1999-11-19 14:35   ` Anton Moscal [this message]
1999-11-17  9:54 ` Gerard Huet
1999-11-18 20:08   ` David Brown
1999-11-19 16:18     ` Markus Mottl
1999-11-20 23:49       ` Packages? skaller
  -- strict thread matches above, loose matches on Subject: below --
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

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=Pine.LNX.4.10.9911191731090.24672-100000@post.tepkom.ru \
    --to=msk@post.tepkom.ru \
    --cc=bpr@best.com \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).