Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Scoping rules
@ 1997-06-28  2:53 Adam P. Jenkins
  0 siblings, 0 replies; only message in thread
From: Adam P. Jenkins @ 1997-06-28  2:53 UTC (permalink / raw)
  To: caml-list

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-06-30  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-28  2:53 Scoping rules Adam P. Jenkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox