caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Peng Zang <peng.zang@gmail.com>
To: caml-list@yquem.inria.fr
Subject: can anyone replicate this camlp4 problem?
Date: Wed, 25 Mar 2009 15:55:57 -0400	[thread overview]
Message-ID: <200903251555.59456.peng.zang@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, camlp4 seems to break parsing of object duplication on 3.11.  Can anyone 
replicate this problem?  Is this an known issue?  A quick google search did 
not reveal anything..

Peng


          Objective Caml version 3.11.0

  # #use "topfind";;
  Findlib has been successfully loaded. Additional directives:
    #require "package";;      to load a package
    #list;;                   to list the available packages
    #camlp4o;;                to load camlp4 (standard syntax)
    #camlp4r;;                to load camlp4 (revised syntax)
    #predicates "p,q,...";;   to set these predicates
    Topfind.reset();;         to force that packages will be reloaded
    #thread;;                 to enable threads

  # #camlp4o;;
  /home/peng/app-data/godi-3.11/lib/ocaml/std-lib/dynlink.cma: loaded
  /home/peng/app-data/godi-3.11/lib/ocaml/std-lib/camlp4: added to search path
  /home/peng/app-data/godi-3.11/lib/ocaml/std-lib/camlp4/camlp4o.cma: loaded
          Camlp4 Parsing version 3.11.0

  # class functional_point x y = object 
      val x = x
      val y = y
      method get_x = x
      method get_y = y
      method move dx dy = {< x = x + dx; y = y + dy >}
    end;;
            Characters 138-144:
      method move dx dy = {< x = x + dx; y = y + dy >}
                                 ^^^^^^
  Warning S: this expression should have type unit.
  Characters 146-156:
      method move dx dy = {< x = x + dx; y = y + dy >}
                                         ^^^^^^^^^^
  Error: This expression has type bool but is here used with type int
  # 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFJyoxPfIRcEFL/JewRAg8TAKCjoxTmDmfLxVHa7sXq0tGlt2rKDgCgp/C2
nc4vnKWkTvKXeR4Q0z4XB94=
=IwA+
-----END PGP SIGNATURE-----


             reply	other threads:[~2009-03-25 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25 19:55 Peng Zang [this message]
2009-03-25 20:01 ` [Caml-list] " Andres Varon
2009-03-25 20:15   ` Peng Zang
2009-03-25 20:25     ` Peng Zang
2009-03-25 20:30     ` Andres Varon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200903251555.59456.peng.zang@gmail.com \
    --to=peng.zang@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).