From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 48159BC2F for ; Thu, 25 Nov 2004 22:11:25 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iAPLBMie002377 for ; Thu, 25 Nov 2004 22:11:22 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA19431 for ; Thu, 25 Nov 2004 22:11:19 +0100 (MET) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iAPLBJib028536 for ; Thu, 25 Nov 2004 22:11:19 +0100 Received: from warp (chateaudeau-4-82-225-176-25.fbx.proxad.net [82.225.176.25]) by postfix4-2.free.fr (Postfix) with SMTP id 8C8AF9CBA4 for ; Thu, 25 Nov 2004 22:11:18 +0100 (CET) Message-ID: <005701c4d333$c3bc31e0$19b0e152@warp> From: "Nicolas Cannasse" To: References: <20041125204628.GA24215@annexia.org> Subject: Re: [Caml-list] Why doesn't ocamlopt detect a missing ; after failwith statement? Date: Thu, 25 Nov 2004 22:14:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Miltered: at nez-perce with ID 41A64A7A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41A64A77.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 ocamlopt:01 failwith:01 val:01 failwith:01 prerr:01 endline:01 unify:01 nicolas:02 nicolas:02 unit:02 unit:02 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: > All well and good, but I don't understand why it doesn't warn me about > the missing ';' in the first case. val failwith : string -> 'a so failwith "error" prerr_endline "OK"; is a valid call since 'a unify with (string -> unit) -> string -> unit Nicolas