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 TAA12400; Tue, 15 Jan 2002 19:44:37 +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 TAA16995 for ; Tue, 15 Jan 2002 19:44:36 +0100 (MET) Received: from relay-2m.club-internet.fr (relay-2m.club-internet.fr [195.36.216.171]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g0FIiZb28036 for ; Tue, 15 Jan 2002 19:44:35 +0100 (MET) Received: from warp (lns03m-1-214.w.club-internet.fr [212.194.48.214]) by relay-2m.club-internet.fr (Postfix) with SMTP id 0E0111762 for ; Tue, 15 Jan 2002 19:44:34 +0100 (CET) Message-ID: <004a01c19df4$422470b0$9600a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] Class Events Date: Tue, 15 Jan 2002 19:37:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, i'm trying to have my class having some event callback like this : class wmenuitem (fcallback:wmenuitem->unit) = object(self) val func = fcallback method activate = (func self) end but I'm having : This expression has type < activate : 'a; .. > but is here used with type wmenuitem = < .. > Self type cannot escape its class Is it really true that self cannot be a parameter ? Any help ? Thanks Warp ------------------- 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