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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 0D0177EEF6 for ; Wed, 17 Jun 2015 03:50:41 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of asai@is.ocha.ac.jp) identity=pra; client-ip=133.65.64.10; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="asai@is.ocha.ac.jp"; x-sender="asai@is.ocha.ac.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of asai@is.ocha.ac.jp designates 133.65.64.10 as permitted sender) identity=mailfrom; client-ip=133.65.64.10; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="asai@is.ocha.ac.jp"; x-sender="asai@is.ocha.ac.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@web.is.ocha.ac.jp) identity=helo; client-ip=133.65.64.10; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="asai@is.ocha.ac.jp"; x-sender="postmaster@web.is.ocha.ac.jp"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ASAwB70YBVlwpAQYVbg2RfwAyHTkwBAQEBAQESAQEBAQEIFgdPQQODdyg5QjQFIAEFAVeIDAEFp0qDMT4xnRKFJQqQXYMBgRYFi31shnaEUoZyAYF0lFo1gRWELmCCRwEBAQ X-IPAS-Result: A0ASAwB70YBVlwpAQYVbg2RfwAyHTkwBAQEBAQESAQEBAQEIFgdPQQODdyg5QjQFIAEFAVeIDAEFp0qDMT4xnRKFJQqQXYMBgRYFi31shnaEUoZyAYF0lFo1gRWELmCCRwEBAQ X-IronPort-AV: E=Sophos;i="5.13,629,1427752800"; d="scan'208";a="165697588" Received: from web.is.ocha.ac.jp ([133.65.64.10]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Jun 2015 03:50:39 +0200 Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by web.is.ocha.ac.jp (Postfix) with ESMTP id 99251996178 for ; Wed, 17 Jun 2015 10:50:35 +0900 (JST) Received: by pdjn11 with SMTP id n11so26679288pdj.0 for ; Tue, 16 Jun 2015 18:50:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=pw6bJRUZLFSlUSd/O+feb+Q5UY9UKmbYVPNo7rCytd0=; b=HWA9bIbKqVMZ0I/lIW7kroGB94xEKd5cf2/lsqAp5Xy1/TiJUcc/vAgw0nPIaGxQBb +kjAbbrcZ9+xisvvZiT++3gef0ktyxplnSqLUamz0Q3TQsZna40rUHtxA1C8fOc+SGjq KDb/L9xC+P0a8beGS1uNNXsBslegAo56gkgilZBovDZq6yaCTC7Hr/R4OgYQC2aTmsCh pgy651dNVctmCfMY8UYyTlgfIx7Gq6NIRkWNXUnXPc6pedcRtjGvuUS5IHYNYK9cZjvS d0vWAR405Gk6Y2PjOxX2GsDxfIahpc9cgIdEOKXHDApZ5XeKMwvtGK5ZbZVXkm/RHr13 XJ1w== X-Gm-Message-State: ALoCoQlk83QjfTW5feG/G9L9BD/RF2PnC1Ah5bzW1o+uzyYMAXiT1XlsSNo3gRBAazuevo9vjhjWJn4Sd5MjSDCSR4etXgWiJRBdjZQvfCXMH66eKz2IAzvgvDkRXuAadihQGZRnS13h X-Received: by 10.66.221.138 with SMTP id qe10mr5689092pac.45.1434505835235; Tue, 16 Jun 2015 18:50:35 -0700 (PDT) X-Received: by 10.66.221.138 with SMTP id qe10mr5689082pac.45.1434505835129; Tue, 16 Jun 2015 18:50:35 -0700 (PDT) Received: from localhost ([133.65.65.2]) by mx.google.com with ESMTPSA id pn6sm2701209pdb.72.2015.06.16.18.50.32 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 16 Jun 2015 18:50:34 -0700 (PDT) Date: Wed, 17 Jun 2015 10:50:24 +0900 From: Kenichi Asai To: caml-list@inria.fr Message-ID: <20150617015024.GA62361@pllab.is.ocha.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [Caml-list] unmatched paren when using #use in toplevel When I have a file with unmatched parenthesis: test.ml: 1 + (2 * 3 and include it using #use, the ocaml toplevel says: % ocaml OCaml version 4.02.1 # #use "test.ml";; Syntax error: ')' expected, the highlighted '(' might be unmatched # with underline at the space immediately after "#use", but it should show a file name, line number, and characters. In case of a type error: test.ml: 1 + (2 *. 3) % ocaml OCaml version 4.02.1 # #use "test.ml";; File "test.ml", line 1, characters 5-6: Error: This expression has type int but an expression was expected of type float # It displays the place of the error correctly. (In OCaml 3.12.1, both worked fine.) Sincerely, -- Kenichi Asai