Revision history for KeyPgOpAnd


Revision [20998]

Last edited on 2016-03-13 05:03:47 by fxm [Formatting]

No Differences

Revision [20348]

Edited on 2016-02-10 16:03:33 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgOperator|operator]] **And** ( [[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.
- ##[[KeyPgOpAndAlso|AndAlso]]##
- [[TblTruth|Operator Truth Tables]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] **And** ( [[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.
- ##[[KeyPgOpAndAlso AndAlso]]##
- [[TblTruth Operator Truth Tables]]


Revision [17784]

Edited on 2015-09-12 08:08:53 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. Only if the left and right-hand side types are both Boolean, the return type is also Boolean.


Revision [17782]

Edited on 2015-09-12 08:03:32 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 Boolean, the return type is also 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 [17777]

Edited on 2015-09-12 07:20:41 by FxMwikki [Added conversion of Booleans to Integers]
Additions:
This operator returns the bitwise-and 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-and of its operands, a logical operation that results in a value with bits set depending on the bits of the operands.


Revision [17758]

Edited on 2015-09-12 04:38:17 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 [15724]

Edited on 2012-01-17 11:56:08 by CountingPine [Link to AndAlso]
Additions:
- ##[[KeyPgOpAndAlso AndAlso]]##


Revision [12366]

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



sf.net phatcode