From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id CEF86BBAF for ; Wed, 25 Mar 2009 21:01:29 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8AAFsqyknYSfEMkWdsb2JhbACCJS6KQIhrAQEBAQkLCgcRBKwDkGODdQY X-IronPort-AV: E=Sophos;i="4.38,421,1233529200"; d="scan'208,217";a="24979807" Received: from info-smtp-004.amnh.org ([216.73.241.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 25 Mar 2009 21:01:28 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by info-smtp-004.amnh.org (Postfix) with ESMTP id 2D2C11CD50D for ; Wed, 25 Mar 2009 16:01:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at amnh.org Received: from info-smtp-004.amnh.org ([127.0.0.1]) by localhost (info-smtp-004.amnh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2k+y-NN78Peb for ; Wed, 25 Mar 2009 16:01:24 -0400 (EDT) Received: from samson.internal.amnh.org (216-73-249-185.dynamic.amnh.org [216.73.249.185]) by info-smtp-004.amnh.org (Postfix) with ESMTPSA id 37C451CD509 for ; Wed, 25 Mar 2009 16:01:24 -0400 (EDT) Message-Id: <963A7662-942E-4E70-B068-EEF3239F58E7@gmail.com> From: Andres Varon To: caml-list@yquem.inria.fr In-Reply-To: <200903251555.59456.peng.zang@gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-173--141437211 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Caml-list] can anyone replicate this camlp4 problem? Date: Wed, 25 Mar 2009 16:01:24 -0400 References: <200903251555.59456.peng.zang@gmail.com> X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; camlp:01 hash:01 camlp:01 bug:01 topfind:01 findlib:01 syntax:01 syntax:01 topfind:01 lib:01 ocaml:01 dynlink:01 lib:01 ocaml:01 val:01 --Apple-Mail-173--141437211 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Mar 25, 2009, at 3:55 PM, Peng Zang wrote: > -----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.. Yeah. I reported the bug here: http://caml.inria.fr/mantis/view.php?id=4673 Andres > > 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----- > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs --Apple-Mail-173--141437211 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Mar 25, 2009, = at 3:55 PM, Peng Zang wrote:

-----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..

Yeah. I reported the bug = here:

http://caml.inria.= fr/mantis/view.php?id=3D4673

Andres


Peng


=          Objective Caml = version 3.11.0

 # #use "topfind";;
 Findlib has = been successfully loaded. Additional directives:
=    #require "package";;      to = load a package
   #list;; =             &n= bsp;     to list the available packages
=    #camlp4o;; =             &n= bsp;  to load camlp4 (standard syntax)
=    #camlp4r;; =             &n= bsp;  to load camlp4 (revised syntax)
=    #predicates "p,q,...";;   to set these = predicates
   Topfind.reset();; =         to force that packages = will be reloaded
   #thread;; =             &n= bsp;   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 =3D = object
     val x =3D x
=      val y =3D y
=      method get_x =3D x
=      method get_y =3D y
=      method move dx dy =3D {< x =3D x + dx; = y =3D y + dy >}
   end;;
=            Characte= rs 138-144:
     method move dx dy =3D = {< x =3D x + dx; y =3D y + dy >}
=             &n= bsp;           &nbs= p;       ^^^^^^
 Warning S: = this expression should have type unit.
 Characters 146-156:
=      method move dx dy =3D {< x =3D x + dx; = y =3D y + dy >}
=             &n= bsp;           &nbs= p;            =    ^^^^^^^^^^
 Error: This expression has type = bool but is here used with type int
 #
-----BEGIN PGP = SIGNATURE-----
Version: GnuPG v2.0.7 = (GNU/Linux)

iD8DBQFJyoxPfIRcEFL/JewRAg8TAKCjoxTmDmfLxVHa7sXq0tGlt2r= KDgCgp/C2
nc4vnKWkTvKXeR4Q0z4XB94=3D
=3DIwA+
-----END PGP = SIGNATURE-----

_______________________________________________
C= aml-list mailing list. Subscription management:
http://y= quem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: = http://caml.inria.fr
Beginner's list: = http://groups.yahoo.com/group/ocaml_beginners
Bug reports: = http://caml.inria.fr/bin/caml-bugs

= = --Apple-Mail-173--141437211--