<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LC++]Scoping question</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&gt; Am I guaranteed this will happen as I want by ISO? I know </FONT>
<BR><FONT SIZE=2>&gt; that for global</FONT>
<BR><FONT SIZE=2>&gt; variables in seperate files, any ordering can be used for their</FONT>
<BR><FONT SIZE=2>&gt; construction/destruction. Is this the same situation with </FONT>
<BR><FONT SIZE=2>&gt; static variables,</FONT>
<BR><FONT SIZE=2>&gt; or are they considered to be constructed strictly after and destroyed</FONT>
<BR><FONT SIZE=2>&gt; strictly before global variables are?</FONT>
</P>

<P><FONT SIZE=2>There is a thing you can rely on, IIRC, that globals in a</FONT>
<BR><FONT SIZE=2>single compilation unit are initialized in the order they</FONT>
<BR><FONT SIZE=2>are declared. I think destruction will happens in the</FONT>
<BR><FONT SIZE=2>opposite order, so if you can declare y as a global, then</FONT>
<BR><FONT SIZE=2>you'd be fine.</FONT>
<BR><FONT SIZE=2>Hmm, as I write this, I become less and less sure about</FONT>
<BR><FONT SIZE=2>what I'm saying.... :)</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h</FONT>
</P>

</BODY>
</HTML>