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 WAA08292; Sun, 23 Feb 2003 22:54:42 +0100 (MET) 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 WAA07971 for ; Sun, 23 Feb 2003 22:54:41 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from web13103.mail.yahoo.com (web13103.mail.yahoo.com [216.136.174.148]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h1NLseT11246 for ; Sun, 23 Feb 2003 22:54:40 +0100 (MET) Message-ID: <20030223215439.35663.qmail@web13103.mail.yahoo.com> Received: from [64.0.151.188] by web13103.mail.yahoo.com via HTTP; Sun, 23 Feb 2003 13:54:39 PST Date: Sun, 23 Feb 2003 13:54:39 -0800 (PST) From: Ford Lissett Subject: [Caml-list] object single linked list - newbie To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm missing something really obvious here, please explain - line 13, characters 17-22: This expression has type node node_type It has no method get_link type 't node_type = Class of 't | Nil;; class node link_ = object (self) val mutable link: node node_type = link_ method add node_ = let next = ref link in let peek = ref link in while (!peek != Nil) do next := !peek; peek := !next#get_link; (* line 13 *) done; link <- node_ method get_link = link end;; __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ------------------- 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