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 QAA28872; Fri, 28 May 2004 16:53:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA28745 for ; Fri, 28 May 2004 16:53:07 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mwinf0302.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4SEr6SH025762 for ; Fri, 28 May 2004 16:53:06 +0200 Received: from vanicat.homelinux.org (ca-bordeaux-8-36.w80-8.abo.wanadoo.fr [80.8.80.36]) by mwinf0302.wanadoo.fr (SMTP Server) with ESMTP id EC83FC000105 for ; Fri, 28 May 2004 16:52:40 +0200 (CEST) Received: from moi by vanicat.homelinux.org with local (Exim 4.34) id 1BTiii-0002ER-TQ for caml-list@inria.fr; Fri, 28 May 2004 16:52:28 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] a class as method parameter... References: <200405281125.50554.micha-1@fantasymail.de> <1085754814.6826.250.camel@pelican.wigram> From: Remi Vanicat Mail-Copy-To: never Date: Fri, 28 May 2004 16:52:28 +0200 In-Reply-To: <1085754814.6826.250.camel@pelican.wigram> (skaller@users.sourceforge.net's message of "29 May 2004 00:33:34 +1000") Message-ID: <87k6ywwqmr.dlv@vanicat.homelinux.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 40B75252.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 val:01 weirdness:01 val:01 semantically:01 code's:01 ocaml:01 writes:01 remi:01 remi:01 vanicat:01 vanicat:01 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk skaller writes: > On Fri, 2004-05-28 at 19:25, Michael wrote: >> Hi, >> >> I don't understand why this doesn't work: >> >> class one = object >> val name = "test" >> method name = name >> end;; > > What kind of weirdness is this? A val called name > and also a method called name?? method and val don't live in the same domain name. There is no problem in the point of vue of ocaml (and semantically, they are the same here, so it is not too much a problem for code's users). -- Rémi Vanicat ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners