Revision history for KeyPgOpOr


Revision [21051]

Last edited on 2016-03-13 08:27:17 by fxm [Formatting]

No Differences

Revision [20401]

Edited on 2016-02-10 16:05:15 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgOperator|operator]] **Or** ( [[KeyPgByref|byref]] //lhs// [[KeyPgAs|as]] //T1//, [[KeyPgByref|byref]] //rhs// [[KeyPgAs|as]] //T2// ) [[KeyPgAs|as]] //Ret//
The return type depends on the types of values passed. ##[[KeyPgByte|Byte]]##, ##[[KeyPgUbyte|Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger|Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned. Only if the left and right-hand side types are both ##[[KeyPgBoolean|Boolean]]##, the return type is also ##[[KeyPgBoolean|Boolean]]##.
- In the //[[CompilerOptlang|-lang qb]]// dialect, this operator cannot be overloaded.
- ##[[KeyPgOpOrElse|OrElse]]##
- [[TblTruth|Operator Truth Tables]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **Or** ( [[KeyPgByref byref]] //lhs// [[KeyPgAs as]] //T1//, [[KeyPgByref byref]] //rhs// [[KeyPgAs as]] //T2// ) [[KeyPgAs as]] //Ret//
The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned. Only if the left and right-hand side types are both ##[[KeyPgBoolean Boolean]]##, the return type is also ##[[KeyPgBoolean Boolean]]##.
- In the //[[CompilerOptlang -lang qb]]// dialect, this operator cannot be overloaded.
- ##[[KeyPgOpOrElse OrElse]]##
- [[TblTruth Operator Truth Tables]]


Revision [17787]

Edited on 2015-09-12 08:12:03 by FxMwikki [Added the case for a boolean return type]
Additions:
The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned. Only if the left and right-hand side types are both ##[[KeyPgBoolean Boolean]]##, the return type is also ##[[KeyPgBoolean Boolean]]##.
Deletions:
The return type depends on the types of values passed. ##[[KeyPgByte Byte]]##, ##[[KeyPgUbyte Ubyte]]## and floating-point type values are first converted to ##[[KeyPgInteger Integer]]##. If the left and right-hand side types differ only in signedness, then the return type is the same as the left-hand side type (##//T1//##), otherwise, the larger of the two types is returned.


Revision [17774]

Edited on 2015-09-12 07:18:07 by FxMwikki [Added conversion of Booleans to Integers]
Additions:
This operator returns the bitwise-disjunction of its operands, a logical operation that results in a value with bits set depending on the bits of the operands (for conversion of a boolean to an integer, false or true boolean value becomes 0 or -1 integer value).
Deletions:
This operator returns the bitwise-disjunction of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.


Revision [17762]

Edited on 2015-09-12 04:42:26 by FxMwikki [Added boolean type]
Additions:
Any numeric or boolean type.
Any numeric or boolean type.
A numeric or boolean type (varies with ##//T1//## and ##//T2//##).
Deletions:
Any numeric type.
Any numeric type.
A numeric type (varies with ##//T1//## and ##//T2//##).


Revision [16804]

Edited on 2013-05-08 07:32:09 by FxMwikki [Repaired broken link to OrElse at page bottom]
Additions:
- ##[[KeyPgOpOrElse OrElse]]##
Deletions:
- ##[[KeyPgOrElse OrElse]]##


Revision [15726]

Edited on 2012-01-17 11:57:36 by CountingPine [Link to OrElse]
Additions:
- ##[[KeyPgOrElse OrElse]]##


Revision [12410]

The oldest known version of this page was created on 2008-01-18 14:22:32 by JeffMarshall [Link to OrElse]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode