Oh, come on. On what grounds? delete does not change the pointer's value, so there is no constancy violation either. So, I have no complaints to the compiler here, everything is clear.
Vladimir Simakov: Oh, come on. On what grounds? delete does not change the pointer's value, so there is no constancy violation either. So, I have no complaints about the compiler here.
The static variable is initialised on the first call.
Are you sure? I'll have to test it tomorrow. The docs says:Static variables exist at runtime and are initialized once before call of the specializedOnInit()function. If no initial values are specified, static memory class variables take zero initial values.
If you are writing as you do, then the dock writer has a fierce bug.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is one. I've only brought up one entry from the log. The full one is like this:
Then I don't understand where the last line is coming from.
Then I don't understand where the last line is coming from.
After selecting "Edit" context menu, the navigator can't find the original mq5 in the same path as ex5.
Because ex5 has been moved to the scripts folder from Shared Projects, where mq5 lives
Fix. Let's make the same smart search as in the tester settings
Thank you, good rule. Became a victim of my own incompetence. Really, need some more rule for such a more obvious case.
Maybe for both cases Warning clever to do?
There must be a compilation error here.
Oh, come on. On what grounds? delete does not change the pointer's value, so there is no constancy violation either. So, I have no complaints about the compiler here.
We are talking about the second example
The static variable is initialised on the first call.
The static variable is initialised on the first call.
...If as you write, then the dock writer has a bad bug.
The dock writer is exactly right. Static variables cannot be initialized with local values.
Developers. An explanation is needed. Which to believe? The docs or the implementation? We have undefined behavior so far.
@fxsaber, I don't advise you to use it before the official explanations, in case they take it and fix it.