Different compilers for scripts and experts ?

 

Hello,

when having a for loop  in a script

 

void function(void)
{
for(int idx=0;idx < 10;++id)
{
;
}
for(idx=0;idx < 10;++id)
{
;
}

}

 no compiler error.

Having same in an expert, i get a compiler error about unknown idx in 2nd loop.

What is the reason for that ?

Thank you 

 

Possibly in the EA you have

#property strict

 but not in the script

 
GumRai:

Possibly in the EA you have

 but not in the script

That's it. Thank you!
Reason: