From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA20146; Thu, 28 Jun 2001 17:54:03 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA20208 for ; Thu, 28 Jun 2001 17:54:02 +0200 (MET DST) Received: from sus-ca3it02.rational.com (ext-20001.rational.com [130.213.2.5] (may be forged)) by nez-perce.inria.fr (8.11.1/8.10.0) with SMTP id f5SFs1f03664 for ; Thu, 28 Jun 2001 17:54:01 +0200 (MET DST) Received: from 172.19.60.36 by sus-ca3it02.rational.com (InterScan E-Mail VirusWall NT); Thu, 28 Jun 2001 09:00:21 -0700 Received: by sus-ca3it02.rational.com with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Jun 2001 09:00:20 -0700 Message-ID: From: "Bauer, Robert" To: caml-list@inria.fr Subject: [Caml-list] re: help with ocaml Date: Thu, 28 Jun 2001 09:00:23 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have a little definition below written in ocaml. My problem is that when I define the class lattice_point, I would have liked to specify the types of the parameters; however, when I do so I get an error - instead, I have to specify the types of the class's attributes. I am hoping that someone can shed some light on this. Also, I find that if try to use any capitalized variables, I get interesting errors - for example if I try let XYZ_ZYX = (false, false);; I get an error, whereas let xyz_zyx = (false, false);; works just fine. Or more simply, let XYZ = (false, false);; fails. Again, I am hoping for an explanation. class lattice_point left right = object val mutable l:bool = left val mutable r:bool = right method get_l = l method get_r = r end;; let top_def = new lattice_point false false;; Thanks. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr