> On Sat, 22 Dec 2001, Shaul Karl wrote:
> 
> > My overall impression so far is that the the ability to run substantial
> > code before main get started is quite problematic. However I am
> 
> as well it should be!
> 
> you are aware, i hope, of the static initializer problem?
> http://www.codeguru.com/cpp/tic/tic0114.shtml
> 


I have only recently learned about it: http://www.parashift.com/c++-faq-
lite/ctors.html#[10.11]


> > currently programming only the initialization of my C++ program, which
> > is why I only encounter difficulties with the initialization of a C++
> > program.
> 
> but why does initialization of your code need to take place before
> main() begins??


That seems to me the natural thing to do with a global object: have it 
initialized separately from main so that there will be no need to 
define it outside of main and then have main initialize it.


> note, if it doesn't, and i'm butting in at the middle of the thread,
> apologies.
> -- 
> mulix
> 
> http://vipe.technion.ac.il/~mulix/
> http://syscalltrack.sf.net/
> 
> 

-- 

    Shaul Karl
    email: shaulka(at-no-spam)bezeqint.net 
           Please replace (at-no-spam) with an at - @ - character.
           (at-no-spam) is meant for unsolicitate mail senders only.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to