Maybe. It depends to what is applying the "same" ?
Strictly speaking they are not the same as they are different.
Semantically they are not the same as we don't know how '!' is implemented with a pointer. Maybe !ptr is replaced by ptr== NULL || CheckPointer(ptr)==POINTER_INVALID by the compiler ?
The final result is the same though. No ?
When going by the docs, the only logical interpretation seems to be:
Alain Verleyen #: Semantically they are not the same as we don't know how '!' is implemented with a pointer. Maybe !ptr is replaced by ptr== NULL || CheckPointer(ptr)==POINTER_INVALID by the compiler ?
Thank you, Alain. That's what I'm talking about and the reason for my question.
Unfortunately, I can't see the source code of the MQL compiler.
I don't know if the syntactical simplification if(!pointer) also checks for NULL. But apparently not.
Nevertheless, A little tip:
Please don't answer such simple yes-or-no questions with contradictions or uncertainties – that is neither polite nor helpful. And if you don't "want" to answer such easy questions directly, then don't answer - that's not correct!
No. You are unclear about what it is you want answered.
I have answered from all sides now and will not provide more answers to you.
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.
No ? Not so easy.
Maybe. It depends to what is applying the "same" ?
Strictly speaking they are not the same as they are different.
Semantically they are not the same as we don't know how '!' is implemented with a pointer. Maybe !ptr is replaced by ptr== NULL || CheckPointer(ptr)==POINTER_INVALID by the compiler ?
The final result is the same though. No ?
Semantically they are not the same as we don't know how '!' is implemented with a pointer. Maybe !ptr is replaced by ptr== NULL || CheckPointer(ptr)==POINTER_INVALID by the compiler ?
Thank you, Alain. That's what I'm talking about and the reason for my question.
I don't know if the syntactical simplification if(!pointer) also checks for NULL. But apparently not.
Nevertheless, A little tip:
Please don't answer such simple yes-or-no questions with contradictions or uncertainties – that is neither polite nor helpful. And if you don't "want" to answer such easy questions directly, then don't answer - that's not correct!
Yeah but the documentation is not a trustworthy reference. They sometimes update it to fix bug in code instead of the reverse, so...
I am confused now 😂
On Windows you have them directly with WinKey+"."
On Linux I don't know.
Thank you, Alain. That's what I'm talking about and the reason for my question.
On Windows you have them directly with WinKey+"."
On Linux I don't know.