Download MetaTrader 5

How do you avoid name collisions?

To add comments, please log in or register
Install apps from the library right in MetaTrader. It is easy!
Jordi Bassaganas
3528
Jordi Bassaganas 2013.09.02 19:19 

Hi there!,

When I get a warning like this:

"declaration of 'deviation' hides global declaration in file 'ZigZag.mq5' at line 27 | Trade.mqh"

I use to change the var name causing the given collision. Is there another way to avoid these kind of name collision, something like a namespace or so?

Thks a lot in advance!

Alain Verleyen
Moderator
30736
Alain Verleyen 2013.09.02 19:51  
laplacianlab:

Hi there!,

When I get a warning like this:

"declaration of 'deviation' hides global declaration in file 'ZigZag.mq5' at line 27 | Trade.mqh"

I use to change the var name causing the given collision. Is there another way to avoid these kind of name collision, something like a namespace or so?

Thks a lot in advance!

No other way.
Jordi Bassaganas
3528
Jordi Bassaganas 2013.09.02 19:54  
angevoyageur:
No other way.
Ok, thks!
To add comments, please log in or register