Christian Stern:
Mql does not obey scope when it comes to classes. There is no way to declare a private inner class.
Hey all,
i am wondering if i found a bug or just misunderstood the scope of struct.
I have 2 seperate classes. One includes the other ( not extend !). In both i use a struct with the same name. Within class1 i create a object of class2.
Class2:
Class1:
When the compile is checking, he says "already used". But i declared this within the class and not in the global space. This are two different scopes but why there see each other ?
Regards, Chris
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey all,
i am wondering if i found a bug or just misunderstood the scope of struct.
I have 2 seperate classes. One includes the other ( not extend !). In both i use a struct with the same name. Within class1 i create a object of class2.
Class2:
Class1:
When the compile is checking, he says "already used". But i declared this within the class and not in the global space. This are two different scopes but why there see each other ?
Regards, Chris