English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2003-03-24 (12:28)
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 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