Errors, bugs, questions - page 1355
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
In the near future, if an appropriate conversion statement is overloaded in a class, it will be called.
But it makes no sense to convert a descriptor to a number or vice versa, and this is most likely a bug in the code.
Of course, in terms of "how it is stored in memory", you are right.
But it doesn't make sense to convert the descriptor to a number or vice versa, and it's most likely a bug in the code.
In the near future, if an appropriate conversion operator is overloaded in a class, it will be called.
Of course, in terms of "how it's stored in memory", you're right.
But it doesn't make sense to reduce the descriptor to a number or vice versa, and it's most likely a bug in the code.
In the near future, if an appropriate conversion operator is overloaded in the class, it will be called.
Of course, it was my inattention error, I've already written about it. I have 95% of errors at all, not system errors, but due to inattention )) By the way, I don't see the point in casting a descriptor to a number, either. It's more interesting with pointers where there's pointer arithmetic, for example, you may decompose double into bytes or do something non-trivial. And a descriptor is just an internal identifier, given by MT4 runtime system, you can't do anything with it.
That's how this error occurred, no need to write code at night ))
A descriptor is still a concrete number. Just because it doesn't point to a particular memory section doesn't deprive it of number properties.
Then string is also a set of specific numbers. And a picture is also a number and an electrical pulse on a chip...
In general, study electrical engineering, colleague.
To be honest, I didn't see anything wrong with this citation, considering that it's explicit. Why should there be an error here? ...
Because type control is violated, and the managed environment, which is the MQL virtual machine, should prevent such things:
MQL != C++
Of course, in terms of "how it is stored in memory", you are right.
But it doesn't make sense to convert the descriptor to a number or vice versa, and it's most likely a bug in the code.
In the near future, if the appropriate conversion operator is overloaded in a class, it will be called.
By the way, I don't see the point of reducing the descriptor to any number either...
And the descriptor is just some internal identifier given by the MT4 runtime system, you can't do anything with it.