Difference between revisions of "Operators"
From Mesham
Jump to navigationJump to search (Created page with '== Operators == #+ #- #* Multiplication #% Division #<< Bit shift to left #>> Bit shift to right #== Test for equality #!= Test for inverse equality #= Test of equa…') |
m (6 revisions imported) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Operators == | == Operators == | ||
− | #+ | + | #+ Addition |
− | #- | + | #- Subtraction |
− | #* Multiplication | + | #<nowiki>*</nowiki> Multiplication |
− | # | + | #/ Division |
+ | #++ Pre or post fix addition | ||
+ | #-- Pre or post fix subtraction | ||
#<< Bit shift to left | #<< Bit shift to left | ||
#>> Bit shift to right | #>> Bit shift to right | ||
#== Test for equality | #== Test for equality | ||
#!= Test for inverse equality | #!= Test for inverse equality | ||
− | # | + | #! Logical negation |
+ | #( ) Function call or expression parentheses | ||
+ | #[ ] Array element access | ||
+ | #. Member access | ||
#< Test lvalue is smaller than rvalue | #< Test lvalue is smaller than rvalue | ||
#> Test lvalue is greater than rvalue | #> Test lvalue is greater than rvalue | ||
#<= Test lvalue is smaller or equal to rvalue | #<= Test lvalue is smaller or equal to rvalue | ||
− | #>= Test lvalue is greater or equal to rvalue | + | #>= Test lvalue is greater or equal to rvalue |
− | #|| Logical OR | + | #?: Inline if operator |
− | #&& Logical AND | + | #||| Logical short circuit OR |
+ | #&& Logical short circuit AND | ||
+ | #| Logical OR | ||
+ | #& Logical AND | ||
+ | #+= Plus assignment | ||
+ | #-= Subtraction assignment | ||
+ | #<nowiki>*</nowiki>= Multiplication assignment | ||
+ | #/= Division assignment | ||
+ | #%= Modulus assignment | ||
[[Category:Core Mesham]] | [[Category:Core Mesham]] |
Latest revision as of 15:44, 15 April 2019
Operators
- + Addition
- - Subtraction
- * Multiplication
- / Division
- ++ Pre or post fix addition
- -- Pre or post fix subtraction
- << Bit shift to left
- >> Bit shift to right
- == Test for equality
- != Test for inverse equality
- ! Logical negation
- ( ) Function call or expression parentheses
- [ ] Array element access
- . Member access
- < Test lvalue is smaller than rvalue
- > Test lvalue is greater than rvalue
- <= Test lvalue is smaller or equal to rvalue
- >= Test lvalue is greater or equal to rvalue
- ?: Inline if operator
- ||| Logical short circuit OR
- && Logical short circuit AND
- | Logical OR
- & Logical AND
- += Plus assignment
- -= Subtraction assignment
- *= Multiplication assignment
- /= Division assignment
- %= Modulus assignment