Possible MQL4 Bug

Back to topics list To post a new topic, please log in or register
avatar
306
robofx.org 2015.12.22 20:34
 

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

 

avatar
2017
gooly 2015.12.22 20:42 #
 

It's a new feature not a bug!

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

avatar
306
robofx.org 2015.12.22 21:50 #
 
gooly:

It's a new feature not a bug!

That explains it, thanks.
avatar
12985
WHRoeder 2015.12.22 21:58 #
 
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 */


Back to topics list  

To add comments, please log in or register