Possible MQL4 Bug

 

Hi,
I've come across on something weird. Having an extern input variable followed by comment changes the name of the variable in the EA's/script's Inputs Window. The following code:

extern string myVar = "abc"; // This is a comment
extern double d = 2.5; /* Another comment */

 compiles fine and results in this

 

 

It's a new feature not a bug!

If you want to see the variables just delete the comments.

 
gooly:

It's a new feature not a bug!

That explains it, thanks.
 
gooly: It's a new feature not a bug!

If you want to see the variables just delete the comments.

Or as another thread suggested, a second semicolon.
extern string myVar = "abc"; ;// This is a comment
extern double d = 2.5;       ;/* Another comment */

Reason: