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 897257F0B9 for ; Wed, 7 Sep 2016 14:31:59 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=hendrik@topoi.pooq.com; spf=None smtp.mailfrom=hendrik@topoi.pooq.com; spf=None smtp.helo=postmaster@april.topoi.pooq.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of hendrik@topoi.pooq.com) identity=pra; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="hendrik@topoi.pooq.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of hendrik@topoi.pooq.com) identity=mailfrom; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="hendrik@topoi.pooq.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@april.topoi.pooq.com) identity=helo; client-ip=69.165.131.134; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="hendrik@topoi.pooq.com"; x-sender="postmaster@april.topoi.pooq.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3A2HeZGBW6B3CVa8J92stl87047z7V8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZR2Dt8tkgFKBZ4jH8fUM07OQ6PG5HzJZqsvY+DBaKdoXCE9D0Z?= =?us-ascii?q?1X1yUbQ+e7SmTDZMbwaCI7GMkQHHRExFqcdXZvJcDlelfJqWez5zNBUj/2NA5y?= =?us-ascii?q?O/inUtWK15f/4duv4IXeaBlkgz+0YLU6bEnn7FaZis5DioJnLuM1ywDVinpOYe?= =?us-ascii?q?Vfg21ydnyJmBOpxsq28IRi8Gx6vPUkv5pAXKP2ZaU7ZaBfFDMndXgy49Stvh7G?= =?us-ascii?q?G1jcrkAAW3kbx0IbSzPO6wv3C8ugvw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DsCwBSCNBX/4aDpUVdHQYZARIBgwEBA?= =?us-ascii?q?QEBAXVLMaZaj1GEESSFeAKCHBEBAQEBAQEBAQEBAV0ngjIEAwMVghABAQEDAQw?= =?us-ascii?q?bCwE7GwsYCQQhDwUYGT2IHgMPCA64egODFgEBAQcBAQEBASKKfYUMgmGCLwWGY?= =?us-ascii?q?wySaoYiiREKZ4EHTodFhVqMUIN7NCCEbCA0AYQpgSwBAQE?= X-IPAS-Result: =?us-ascii?q?A0DsCwBSCNBX/4aDpUVdHQYZARIBgwEBAQEBAXVLMaZaj1G?= =?us-ascii?q?EESSFeAKCHBEBAQEBAQEBAQEBAV0ngjIEAwMVghABAQEDAQwbCwE7GwsYCQQhD?= =?us-ascii?q?wUYGT2IHgMPCA64egODFgEBAQcBAQEBASKKfYUMgmGCLwWGYwySaoYiiREKZ4E?= =?us-ascii?q?HTodFhVqMUIN7NCCEbCA0AYQpgSwBAQE?= X-IronPort-AV: E=Sophos;i="5.30,296,1470693600"; d="scan'208";a="235563427" Received: from topoi.pooq.com (HELO april.topoi.pooq.com) ([69.165.131.134]) by mail2-smtp-roc.national.inria.fr with ESMTP; 07 Sep 2016 14:31:57 +0200 Received: by april.topoi.pooq.com (Postfix, from userid 1001) id ED211C20C7; Wed, 7 Sep 2016 08:31:55 -0400 (EDT) Date: Wed, 7 Sep 2016 08:31:55 -0400 From: Hendrik Boom To: caml-list@inria.fr Message-ID: <20160907123155.GA2280@topoi.pooq.com> References: <20160907103816.GA19537@topoi.pooq.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [Caml-list] example from manual FTBFS On Wed, Sep 07, 2016 at 12:41:29PM +0200, Frédéric Bour wrote: > Your snippet of code is a signature, not a structure. > Try renaming tt.ml to tt.mli. Yes. That was it. I'll have to read up further on that distinction, now that I know the problem. -- hendrik > > On 09/07/2016 12:38 PM, Hendrik Boom wrote: > >I took an example from > >http://caml.inria.fr/pub/docs/u3-ocaml/ocaml-objects.html > > > >class amateur : object ('a) > > method play : 'a -> int -> 'a > >end > >class professional : object ('a) > > method level : int > > method play : 'a -> int -> 'a > >end > > > >and tried to compile it: > > > >hendrik@notlookedfor:~/dv/ocaml/parse/priority$ ocamlc tt.ml -o tt > >File "tt.ml", line 4, characters 0-5: > >Error: Syntax error > >hendrik@notlookedfor:~/dv/ocaml/parse/priority$ > > > >Those five characters are the word "class" on the second class > >declaration. But it's not the word "class". If I leave that second > >class declaration out, it still complains at the same point, at the > >end of file after the first class declaration. > > > >Evidently, I'm doing something wrong. > > > >hendrik@notlookedfor:~/dv/ocaml/parse/priority$ ocamlc -version > >4.01.0 > >hendrik@notlookedfor:~/dv/ocaml/parse/priority$ which ocamlc > >/home/hendrik/.opam/4.01.0/bin/ocamlc > >hendrik@notlookedfor:~/dv/ocaml/parse/priority$ > > > >-- hendrik > > > > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs