Browse thread
Why doesn't ocamlopt detect a missing ; after failwith statement?
[
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: | Alain Frisch <Alain.Frisch@i...> |
| Subject: | Re: [Caml-list] Why doesn't ocamlopt detect a missing ; after failwith statement? |
Jacques Garrigue wrote: > # raise Exit 3;; > ^ > Warning X: this argument is passed to a never returning function. In my opinion, the text of the warning is misleading. "Exit" is passed to a never returning function, and this is ok. The problem is that "raise Exit" is applied to an argument but it cannot evaluate to a function. -- Alain