Browse thread
aborting a build when encountering first error
- mark@p...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | mark@p... |
| Subject: | aborting a build when encountering first error |
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.