How do you avoid name collisions?

 

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!

 
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.
 
angevoyageur:
No other way.
Ok, thks!