A100: If the difference is huge, then why do both variants compile normally in C++?
Here is no authority at all on C++ in this case, as I based my conclusions on logic. Above, I reworked the example with a dereference.
All you have to do is to make such a substitution
// typedef void (*fn)();typedefvoid (*fn123)();
How the dereference will be completely different. You may ask the compiler to be "smarter than a fool" and act the way it does in C++. But this solution is debatable really.
I.e. such "help" can be implemented in the compiler, but the difference in approaches is shown.
And it shouldn't, if only because of the ambiguity
In the original typedef is an alias for a type, not another type, so it's really a big question for the developers why the type name displays an alias instead of a type.
Комбинатор: In the original typedef is an alias for a type, not another type, so it's really a big question for the developers why the type name displays an alias instead of a type.
During a single run and visualisation the logs are filled with thousands of entries of this kind
2017.08.1620:26:06.4772017.08.0110:04:06 order modified [#253 buy limit 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order modified [#253 buy limit 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order modified [#253 buy limit 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order modified [#253 buy limit 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order modified [#253 buy limit 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 take profit triggered #251 sell 1.00 EURUSD 1.18166 tp: 1.18159 [#254 buy 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 deal #251 buy 1.00 EURUSD at 1.18159 done (based on order #254)
2017.08.1620:26:06.4772017.08.0110:04:06 deal performed [#251 buy 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order performed buy 1.00 at 1.18159 [#254 buy 1.00 EURUSD at 1.18159]
2017.08.1620:26:06.4772017.08.0110:04:06 order [#253 buy limit 1.00 EURUSD at 1.18159] triggered
And you have to wait for long seconds for them to show up. And I'm only interested in the log, which I do myself in OnDeinit. Why do I need to force every time these logs, which are read in VERY rare cases? There is a special menu item in Agent Log Viewer. And the absence of these logs during optimization does not make anyone feel incomplete. So why all this obtrusiveness in hundreds of megabytes (especially if some bad EA is trying to open a deal at every tick, getting Unsupported filled mode)?
Is it possible to separate flies from cutlets in the tester? The same as in the terminal: a log for the prints from the EA itself and a log of the terminal. Tired of waiting for long seconds while those tens of thousands of unnecessary messages in the log for each order-point to pass and you can see the last lines of backtest completion.
It's been a long time coming. I might not be the only one annoyed.
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.
If the difference is huge, then why do both variants compile normally in C++?
Here is no authority at all on C++ in this case, as I based my conclusions on logic. Above, I reworked the example with a dereference.
All you have to do is to make such a substitution
How the dereference will be completely different. You may ask the compiler to be "smarter than a fool" and act the way it does in C++. But this solution is debatable really.
I.e. such "help" can be implemented in the compiler, but the difference in approaches is shown.
is fine. What difference does it make?
apparently, f is not seen as a pointer to a function in a simple pass to the compiler.
apparently, when passed to the compiler, f is not taken as a pointer to a function.
apparently, when passed to the compiler, f is not taken as a pointer to a function.
And it shouldn't, at least because of ambiguity.
And it shouldn't, if only because of the ambiguity
And it shouldn't, if only because of the ambiguity
Error during compilation
If (1) is OK, why an error in (2) if (3) is OK???In the original typedef is an alias for a type, not another type, so it's really a big question for the developers why the type name displays an alias instead of a type.
I agree.
A100:
Please explain the typeof. I couldn't find a good explanation for inexperienced programmers.
And you have to wait for long seconds for them to show up. And I'm only interested in the log, which I do myself in OnDeinit. Why do I need to force every time these logs, which are read in VERY rare cases? There is a special menu item in Agent Log Viewer. And the absence of these logs during optimization does not make anyone feel incomplete. So why all this obtrusiveness in hundreds of megabytes (especially if some bad EA is trying to open a deal at every tick, getting Unsupported filled mode)?
Is it possible to separate flies from cutlets in the tester? The same as in the terminal: a log for the prints from the EA itself and a log of the terminal. Tired of waiting for long seconds while those tens of thousands of unnecessary messages in the log for each order-point to pass and you can see the last lines of backtest completion.
It's been a long time coming. I might not be the only one annoyed.