English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
aborting a build when encountering first error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-10-07 (17:09)
From: mark@p...
Subject: aborting a build when encountering first error

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