Hi Chris,
this is due to cint's loop optimization. .O 0 prevents it.
Axel.
Chris Crawford wrote:
> Hello,
> Could anyone please tell me what is wrong with the following little
> piece of code? I am using v4.00/08, linux redhat 8.0. I'm not sure it
> really has to do with gPad, that's just what I ran across.
> --thanks,
> Chris Crawford
>
> {
> new TCanvas("cv1","cv1");
> for (int x=0;x<2;x++) { //x=1;x<2;x++
> cout<<"gPad1="<<gPad<<endl;
> if (!x) cout<<"gPad2="<<gPad<<endl;
> if (x) cout<<"gPad3="<<gPad<<endl;
> }
> }
>
>
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET