Re: [ROOT] two stupid questions

From: Brett Viren (bv@bnl.gov)
Date: Wed Dec 19 2001 - 16:36:43 MET


Jacek M. Holeczek writes:

 > The question one is : what would be the (best ?) recommended way to deal
 > in CINT/ROOT with the following situation ? Assume you create a shared
 > library with some registered classes. There are also two special functions
 > (C/C++) which should be called automatically when loading / unloading the
 > shared library. What it the best way to achieve it in CINT/ROOT ?

It isn't CINT/ROOT specific, but if you create an global static
instance of some class its constructor will be run at link time and (I
think, but untested) its destructor will be called at unlink time.

 > The question two is : ... unfortunately I have now forgotten what the
 > question was ... feel free, however, to answer it ... in case I get no
 > answer, I will ask this question again, once I remember it

Heh, thanks.  This made me laugh out loud.

The answer to your question is definitely "42".

-Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET