caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: <mark@proof-technologies.com>
To: <caml-list@yquem.inria.fr>
Subject: aborting a build when encountering first error
Date: Thu, 07 Oct 2010 18:09:37 +0100	[thread overview]
Message-ID: <1286471377183@names.co.uk> (raw)

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.


                 reply	other threads:[~2010-10-07 17:09 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=1286471377183@names.co.uk \
    --to=mark@proof-technologies.com \
    --cc=caml-list@yquem.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).