The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. So this topic could have been really useful and useful for programmers, people would have shared interesting features and constructions, but it has turned into another garbage dump.
The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. If to say that this topic could be really useful and useful for programmers, people would share interesting features and constructions, but it has turned into another garbage dump.
Unfortunately, yes, it is. There shouldn't be any questions and discussions here at all.
The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. So this topic could have been really useful and useful for programmers, people would have shared interesting features and constructions, but it has turned into another garbage dump.
Why do you need access to the private field from the outside? Is this some kind of perversion? ) Declare the field private first, and then try to access it. And not only read access, but write access as well! Well... That's really "subtleties and tricks of the trade". ))
Alexey Navoykov: Why do you need access to the private field from the outside? Is it some kind of perversion? ) Declare the field private first, and then try to access it. And not only read access, but write access as well! Well... That's really "subtleties and tricks of the trade". ))
Attention, gentlemen programmers! We have a dangerous hacker, hacking into someone else's classes and ruthlessly changing their private fields! Be careful, take care of your classes.
// Объяснение, почему static-поля структур не являются на самом деле ее полями// Поэтому структура может быть простой, даже если ее static-поле является объектомstruct STRUCT
{
staticstring Str;
int i;
};
string STRUCT::Str = NULL;
union UNION
{
STRUCT Struct; // для сложной структуры была бы ошибкаint i;
};
voidOnStart()
{
Print(sizeof(STRUCT)); // sizeof(int) == 4
}
I suggest you, as the chief hacker of the classes, to tackle a more difficult task. Make it possible to access a private field by name, not by location (because location is very unreliable). Naturally, this should be in the form of a macro. This feature can be useful sometimes, if we want to fix something in someone else's library, without having to edit its source.
Has anyone done resource-efficient sorting of an array of structures by any (not string) given field of the structure?
Suppose there is a structure with three fields int, datetime and double, and there is an array filled with data consisting of this structure. In each cell of the array, the fields of the structure are populated.
Has anyone done resource-efficient sorting of an array of structures by any (not string) given field of the structure?
Suppose there is a structure with three fields int, datetime and double, and there is an array filled with data consisting of this structure. In each cell of the array, the fields of the structure are populated.
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.
The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. So this topic could have been really useful and useful for programmers, people would have shared interesting features and constructions, but it has turned into another garbage dump.
The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. If to say that this topic could be really useful and useful for programmers, people would share interesting features and constructions, but it has turned into another garbage dump.
The thread is called "Peculiarities of mql5 language, nuances and working methods", but instead 45 pages are discussing trading / trading operations and other stuff, which concerns specifically MT5, but not the programming language. So this topic could have been really useful and useful for programmers, people would have shared interesting features and constructions, but it has turned into another garbage dump.
Forum on trading, automated trading systems and strategy testing
Libraries: TypeToBytes
fxsaber, 2017.07.11 15:40
Why do you need access to the private field from the outside? Is it some kind of perversion? ) Declare the field private first, and then try to access it. And not only read access, but write access as well! Well... That's really "subtleties and tricks of the trade". ))
This is private-PR!
This is private-PR!
Has anyone done resource-efficient sorting of an array of structures by any (not string) given field of the structure?
Suppose there is a structure with three fields int, datetime and double, and there is an array filled with data consisting of this structure. In each cell of the array, the fields of the structure are populated.
How do I sort this array by any of these fields?
Has anyone done resource-efficient sorting of an array of structures by any (not string) given field of the structure?
Suppose there is a structure with three fields int, datetime and double, and there is an array filled with data consisting of this structure. In each cell of the array, the fields of the structure are populated.
How do I sort this array by any of these fields?
Like this one?
https://www.mql5.com/ru/code/9336