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 QAA03468; Tue, 20 Mar 2001 16:02:30 +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 QAA03610 for ; Tue, 20 Mar 2001 16:02:29 +0100 (MET) Received: from mailgw1.fhg.de (mailgw1.fhg.de [153.96.1.2]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f2KF2SX05961 for ; Tue, 20 Mar 2001 16:02:28 +0100 (MET) Received: from ilt.fhg.de (ilt.ilt.fhg.de [153.96.180.2]) by mailgw1.fhg.de (8.11.1/8.11.1) with ESMTP id f2KF2Oh28761 for ; Tue, 20 Mar 2001 16:02:24 +0100 (MET) Received: from eent230 (iltpc099.ilt.fhg.de [192.102.148.99]) by ilt.fhg.de (8.9.3/8.9.3) with SMTP id QAA27766 for ; Tue, 20 Mar 2001 16:02:26 +0100 (MET) Message-Id: <200103201502.QAA27766@ilt.fhg.de> From: wester@ilt.fhg.de To: caml-list@inria.fr Date: Tue, 20 Mar 2001 16:02:24 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [Caml-list] classes and labels X-mailer: Pegasus Mail for Win32 (v3.01d) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have the class definition: # class myclass ?(n=0) () = object val nn = n; method get_nn = nn method clone (na: int) = let (mc: myclass) = new myclass ~n:na () in mc; end;; that produces the following error message in the toplevel: Characters 5-153: The expression "new myclass" has type ?n:int -> unit -> myclass but is used with type int -> unit -> myclass Can sombody tell what is wrong with my class definition? I would be very apprecitative for any help. With kind regards Rolf Wester ------------------------------------- Rolf Wester wester@ilt.fhg.de ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr