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 C4E7E7F0B9 for ; Wed, 7 Sep 2016 12:38:19 +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=3AS32V7xVL9bhJBCHwFa0NrdBbDujV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZRyFt8tkgFKBZ4jH8fUM07OQ6PG5HzJZqsze+DBaKdoXCE9D0Z?= =?us-ascii?q?1X1yUbQ+e7SmTDZMbwaCI7GMkQHHRExFqcdXZvJcDlelfJqWez5zNBUj/2NA5y?= =?us-ascii?q?O/inUtWK15f/hKiO/Mj0SAxNgHLparp3KFCyrB7NnsgQm4prbKgrnEjnuHxNLs?= =?us-ascii?q?Rbw29yJFHbtRH744/k/JNl/z5RuNo98NZHUOPieKMhC7dfCWJ1YCgO+MT3uEyb?= =?us-ascii?q?HkO07XwGXzBOnw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0C3BAAk7c9X/4aDpUVdOwEBEQEBgwEBA?= =?us-ascii?q?QEBAXVLMY1NqF6CD4ICJIgZFAEBAQEBAQEBAQEBXSeCMhiCRRN7NAUYMYhdDp9?= =?us-ascii?q?lnD+SaoIvBZlZhiKJEQpngVWNH5BLHjaCGQyCRyA0AYVVAQEB?= X-IPAS-Result: =?us-ascii?q?A0C3BAAk7c9X/4aDpUVdOwEBEQEBgwEBAQEBAXVLMY1NqF6?= =?us-ascii?q?CD4ICJIgZFAEBAQEBAQEBAQEBXSeCMhiCRRN7NAUYMYhdDp9lnD+SaoIvBZlZh?= =?us-ascii?q?iKJEQpngVWNH5BLHjaCGQyCRyA0AYVVAQEB?= X-IronPort-AV: E=Sophos;i="5.30,296,1470693600"; d="scan'208";a="235547438" 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 12:38:18 +0200 Received: by april.topoi.pooq.com (Postfix, from userid 1001) id 5DB3BC20E2; Wed, 7 Sep 2016 06:38:16 -0400 (EDT) Date: Wed, 7 Sep 2016 06:38:16 -0400 From: Hendrik Boom To: OCaml Message-ID: <20160907103816.GA19537@topoi.pooq.com> 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] example from manual FTBFS 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