Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Profiling and classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: [Caml-list] Profiling and classes
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?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: