Hello Christoph, I think this is a medium effort change. As you mention, this is not a critical problem for you, I'll put this in my enhancement list. Please teach me if there is an important use case with this. Thank you Masaharu Goto >Date: Mon, 22 Oct 2001 14:19:37 +0200 >From: Christoph Bugel <chris@tti-telecom.com> >To: rootdev@pcroot.cern.ch, roottalk@pcroot.cern.ch >Subject: CINT: static object initialization > > >Hello, >In the following code: > >void f() >{ > static MyClass x(1,2,3); >} > >the MyClass constructor is called at file-loadtime, even if the >function f() is never called. I think MyClass should be constructed >when/if the function is called for the first time. >cint/doc/limitati.txt mentions something related, but I think this >problem still exists. would it be easy to fix? It is not currently a >critical problem for me though. > >Thanks, >Christoph > > >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET