Christian Stern:
Hey all,
while reading the forum i found code where i can't understand the operation.
( full src code: https://www.mql5.com/en/forum/222650 )
What is "|=" and "&=~" doing ?
Thx && Regards
- Assignment Operations
- and Bitwise Operations for ~
Thank you for you answer. I was reading the articles before and dont get the sense out of it. Why is he using this way ?
Because it is simpler to write and can't have typo.
V2i5i7i3o2p2 = V2i5i7j3o2p2 | 4; // This line has a typo V2i5i7i3o2p2 |= 4; // This line can't
Same as
V2i5i7i3o2p2 = V2i5i7j3o2p2 + 4; // This line has a typo V2i5i7i3o2p2 += 4; // This line can't ++V2i5i7i3o2p2; // One is a special case.
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
Hey all,
while reading the forum i found code where i can't understand the operation.
( full src code: https://www.mql5.com/en/forum/222650 )
What is "|=" and "&=~" doing ?
Thx && Regards