
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
There's a good anecdote about this:
- Question: what is the best type for a global variable in c++?
- Answer: //.
Good anecdote. Thank you!
Regards, Vladimir.
This is certainly informative, but global variables should be initialized explicitly for clarity. For example, in mql4 variables/arrays can not be initialized anywhere at all when being declared, and they still get initial zero. ))
And... what's that?) You print out the sum of the addition
I highlighted there in colour)
Or are you still in the era before
#property strict
living?Petr, let's have a challenge. You come up with an example where globals are badly needed, and I'll rewrite it without using globals.
I highlighted it there).
Or are you still in the era before
era?Peter, let's have a challenge. You come up with an example where globals are really needed, and I'll rewrite it without using globals.
But tell me, why are you against them? I just can't understand it. Rejecting the globals is like shooting yourself in the foot. They're so convenient, aren't they?
Peter, on the contrary!