A bug or magic?

 
#property strict
//---
void OnStart()
{
        Print(typedef);
}

I know this code is not syntactically correct. But just try compiling it then post your comment.

 

That's nothing. :)

Try this:

#property strict

void OnStart()
  {
   trash t;         // compiler: variable 't' not used  
   Print("hello");  // MT4: invalid EX4 file (8), global initialization failed
  }
 
lippmaje:

That's nothing. :)

Try this:

'trash' - unexpected token, probably type is missing?

Not so tough compared to mine I guess. 😂

 
What's your build? I compiled it with 1220. Anyway, just a glimpse into MQL's odd handling of keywords. You did notice it's highlighted in blue?
 

What is this all about ?

It seems it became more than an habit to blame others or the compiler for one own mistakes ?

And also there is a section dedicated to mql4/MT4, please use it !
 
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.

 
Keith Watford:
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.

It's Mt5. I never used mt4 in my life. Lol!

 
Nelson Wanyama:

It's Mt5. I never used mt4 in my life. Lol!

Does MQL5 have 

#property strict

?

 
Keith Watford:

Does MQL5 have 

?

No. It can be in the code but it's of no use.

I still don't see the point of this topic.

Reason: