Download MetaTrader 5

Use classes with same name

To add comments, please log in or register
All activity at MQL5.community is clearly visible. Have a look at the Wall!
JohnDoe291
9
JohnDoe291 2015.03.28 20:14 

Hello,

I want to use two classes which have the same name and I want to know if there is a way to do so. The reason why I don't want to change one class name is that I want to stick to the convention.

 

Thanks in advance.

Rodrigo Malacarne
Moderator
9889
Rodrigo Malacarne 2015.03.28 21:18  
JohnDoe291:

Hello,

I want to use two classes which have the same name and I want to know if there is a way to do so. The reason why I don't want to change one class name is that I want to stick to the convention.

 

Thanks in advance.

Hello JohnDoe291,

It's simply not possible. You have to change one of the classe's name.

Regards,
Malacarne 

JohnDoe291
9
JohnDoe291 2015.03.28 21:23  

Ok thank you for your help.

I just thought that there may be a more elegant way.

To add comments, please log in or register