From: "Adam P. Jenkins" <ajenkins@cs.umass.edu>
To: caml-list@inria.fr
Subject: Scoping rules
Date: Fri, 27 Jun 1997 22:53:43 -0400 [thread overview]
Message-ID: <199706280253.WAA02094@dwarin.oit.umass.edu> (raw)
Hi,
Am I right that in Caml/O'Caml, exceptions and open statements
always occur at top-level (by top-level I mean not in a let .. in
block)? What I mean is: in SML one can say
let open List
exception LocalExc of string in
(* in here List is open and I can use LocalExc *)
There doesn't seem to be any equivalent in Caml. Just checking if I'm
missing something. I realize that the scope of "open" and exception
can be limited to a structure, but I was looking for an even smaller
scope. Thanks.
Adam
--
Adam P. Jenkins
mailto:ajenkins@cs.umass.edu
reply other threads:[~1997-06-30 9:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199706280253.WAA02094@dwarin.oit.umass.edu \
--to=ajenkins@cs.umass.edu \
--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