From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA29841; Tue, 3 Apr 2001 20:06:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA29600 for ; Tue, 3 Apr 2001 20:06:14 +0200 (MET DST) Received: from tor.abc.se (ns.abc.se [195.17.72.11]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f33I6Cf21216 for ; Tue, 3 Apr 2001 20:06:12 +0200 (MET DST) Received: from gateway (dialup-44 [195.17.73.44]) by tor.abc.se (8.9.3+Sun/8.9.3) with SMTP id UAA25703 for ; Tue, 3 Apr 2001 20:06:11 +0200 (MET DST) From: "Mattias Waldau" To: Subject: [Caml-list] Example of Ocaml-syntax problem with ; Date: Tue, 3 Apr 2001 20:06:10 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk A misplaced ';' results in an error two expressions away. The compiler compains at the last let in the following code. It just says 'Syntax error'. let _ = 1+2; let _ = 2 let _ = 4 ';' in Ocaml is really a problem for beginners, even if the rule is rather simple: "Do not use any semicolons unless you really need to separate expressions." Would it be possible to make a better diagnosis on the semicolon above? /mattias ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr