caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* aborting a build when encountering first error
@ 2010-10-07 17:09 mark
  0 siblings, 0 replies; only message in thread
From: mark @ 2010-10-07 17:09 UTC (permalink / raw)
  To: caml-list

Hi,

I'm using OCaml's #use directive to incorporate my program's source
files into an OCaml top level session.  I naturally want it to abort
upon hitting the first problem.  And indeed, a #use directive does
abort when it encounters the first error in the source file it calls.
However a nested #use (a #use directive inside a file that is being
"#used") does not abort the outer #use operation.  This means my
nested source files don't cause a top-level abort on encountering the
first error.

What's the neatest way to get my desired behaviour?  (and is this an
intentional characteristic of OCaml's #use or is it a bug in the
language?)

Thanks,
Mark.


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

only message in thread, other threads:[~2010-10-07 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-07 17:09 aborting a build when encountering first error mark

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).