<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto">Hi All,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I have question regarding lexical scope information.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">If I have .c source with scope as below. <BR></div>
<div style="RIGHT: auto">void func()<BR>{</div>
<div style="RIGHT: auto"> //-- some code here..<BR style="RIGHT: auto"> { //parent scope<BR> if() //high pass<BR> {<BR> int i;<BR> for( i =0; i < FRAM_I; i++)<BR> {<BR> }<BR> }<BR> if() //low pass<BR> {<BR> int i;<BR> for( i =0; i < FRAM_J; i++)<BR> {<BR> }<BR> }<BR> }<BR>}<BR></div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">In this case, the 'variable i' is not initialized in any of the if scope, so it should belong to which scope? </div>
<div style="RIGHT: auto">Is it ok, if 'scope information' gives me that it belongs to the parent scope of 'if-scope'?</div>
<div style="RIGHT: auto">Is it because the scope information is collected for machine instructions, and as there will be not machine corresponding to 'int i;', and thus no scope will be associated with it?</div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div>
<div style="RIGHT: auto">Regards,</div>
<div style="RIGHT: auto">Pankaj</div>
<div style="RIGHT: auto"> </div></div></body></html>