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 NAA06268; Mon, 24 Mar 2003 13:28:34 +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 NAA06212 for ; Mon, 24 Mar 2003 13:28:33 +0100 (MET) Received: from athlon.baretta.com ([213.255.109.130]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h2OCSWf29383 for ; Mon, 24 Mar 2003 13:28:32 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 9528B27444 for ; Mon, 24 Mar 2003 13:33:50 +0100 (CET) Message-ID: <3E7EFB2E.9080506@baretta.com> Date: Mon, 24 Mar 2003 13:33:50 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: [Caml-list] Profiling and classes Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; alessandro:01 baretta:01 ocamlcp:01 pervasives:01 ocamlprof:01 profile:98 ocaml:01 caml:01 alex:01 syntax:02 classes:03 object:03 succ:04 initializer:04 definition:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk If I use ocamlcp to attempt to profile the execution of a caml program with classes, I get a syntax error. This is the piece of code generated by ocamlcp where the syntax error comes up: class environment (env:env) = object (__ocaml_prof_cnt_xcaml_session_.(5) <- Pervasives.succ __ocaml_prof_cnt_xcaml_session_.(5); method getvar varname = .... I wonder if it makes any sense for ocamlprof to add such initialization code as this before a method definition, using the sequence operator ";". Does ocamlcp not know about initializer methods? Or am I doing something wrong? Alex ------------------- 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