Revision history for KeyPgOpCombineXor
Additions:
//Note: Similarly to the operator '=[>]' (assign), the alternative symbol 'Xor=>' can be also used.//
Additions:
Revision [21361]
Edited on 2016-04-15 03:58:08 by fxm [Added reference to KeyPgOperator for appropriate syntax when overloaded as member operator]Additions:
This operator can be overloaded for user-defined types as a member ##[[KeyPgOperator|Operator]]## using the appropriate syntax.
Deletions:
Additions:
##//lhs// = //lhs// [[KeyPgOpXor|xor]] //rhs//##
Deletions:
Additions:
[[KeyPgDeclare|declare]] [[KeyPgOperator|operator]] **Xor=** ( [[KeyPgByref|byref]] //lhs// [[KeyPgAs|as]] //T1//, [[KeyPgByref|byref]] //rhs// [[KeyPgAs|as]] //T2// )
//lhs// = //lhs// [[KeyPgOpXor|xor]] //rhs//
- In the //[[CompilerOptlang|-lang qb]]// dialect, this operator cannot be overloaded.
- ##[[KeyPgOpXor|Xor]]##
//lhs// = //lhs// [[KeyPgOpXor|xor]] //rhs//
- In the //[[CompilerOptlang|-lang qb]]// dialect, this operator cannot be overloaded.
- ##[[KeyPgOpXor|Xor]]##
Deletions:
//lhs// = //lhs// [[KeyPgOpXor xor]] //rhs//
- In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
- ##[[KeyPgOpXor Xor]]##
Revision [17768]
Edited on 2015-09-12 07:05:10 by FxMwikki [Added conversion of Booleans to Integers]Additions:
This operator performs a bitwise-or and assigns the result to a variable (for conversion of a boolean to an integer, false or true boolean value becomes 0 or -1 integer value). It is functionally equivalent to:
Deletions:
Additions:
Any numeric or boolean type.
Any numeric or boolean type.
Any numeric or boolean type.
Deletions:
Any numeric type.
Deletions:
Additions:
Note: This operator exists in C/""C++"" with a different meaning - there it performs a Bitwise ##[[KeyPgOpXor Xor]]##.
Revision [14390]
Edited on 2009-08-29 21:55:22 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]Additions:
- New to ""FreeBASIC""