From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 2ACA07EEAF for ; Thu, 17 Jan 2013 21:11:15 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of madroach@gmerlin.de) identity=pra; client-ip=80.91.229.3; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="madroach@gmerlin.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of gclci-caml-list@m.gmane.org designates 80.91.229.3 as permitted sender) identity=mailfrom; client-ip=80.91.229.3; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="gclci-caml-list@m.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@plane.gmane.org designates 80.91.229.3 as permitted sender) identity=helo; client-ip=80.91.229.3; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="postmaster@plane.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQHAPpZ+FBQW+UDgWdsb2JhbABFhX6IdZ0DAZI7Fg4BARYmJ4JfgXGIPJpsoC6OEIMpA5YLgR2SIw X-IronPort-AV: E=Sophos;i="4.84,486,1355094000"; d="scan'208";a="168845263" Received: from plane.gmane.org ([80.91.229.3]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 17 Jan 2013 21:09:17 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TvvmE-0001VS-Ji for caml-list@inria.fr; Thu, 17 Jan 2013 21:09:30 +0100 Received: from stgt-d9be5dba.pool.mediaways.net ([217.190.93.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jan 2013 21:09:30 +0100 Received: from madroach by stgt-d9be5dba.pool.mediaways.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jan 2013 21:09:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Christopher Zimmermann Date: Thu, 17 Jan 2013 21:08:57 +0100 Message-ID: <20130117210857.16022e5339943d22042d131a@gmerlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: stgt-d9be5dba.pool.mediaways.net X-Newsreader: Sylpheed 3.3.0 (GTK+ 2.24.14; x86_64-unknown-openbsd5.2) X-Validation-by: madroach@gmerlin.de Subject: [Caml-list] unreasonable syntax error Hi, compiling this piece of code gives an unreasonable syntax error: let a = [|0|] in a.(0) <- if true then (), else () The ',' before the "else" is of course wrong. But the error explanation is kind of misleading: File "test.ml", line 3, characters 21-25: Error: Syntax error: ')' expected File "test.ml", line 2, characters 4-5: Error: This '(' might be unmatched Christopher