R:Operator Syntax and Precedence
来源:互联网 发布:冒险岛怪物数据库 编辑:程序博客网 时间:2024/05/02 03:01
The following unary and binary operators are defined. They are listed in precedence groups, from highest to lowest.
:: :::
access variables in a namespace
$ @
component / slot extraction
[ [[
indexing
^
exponentiation (right to left)
- +
unary minus and plus
:
sequence operator
%any%
special operators (including %% and %/%)
* /
multiply, divide
+ -
(binary) add, subtract
< > <= >= == !=
ordering and comparison
!
negation
& &&
and
| ||
or
~
as in formulae
-> ->>
rightwards assignment
<- <<-
assignment (right to left)
=
assignment (right to left)
?
help (unary and binary)
Within an expression operators of equal precedence are evaluated from left to right except where indicated. (Note that = is not necessarily an operator.)
The binary operators ::, :::, $ and @ require names or string constants on the right hand side, and the first two also require them on the left.
The links in the See Also section cover most other aspects of the basic syntax.
- R:Operator Syntax and Precedence
- C++ Operator Precedence and associativity
- Operator Grammar and Operator Precedence Grammar
- 14.2.1 Operator precedence and associativity
- python studying ---- keyword and operator precedence
- C++ Operator Precedence
- C++ Operator Precedence
- Operator Precedence Hierarchy
- C++ Operator Precedence
- C++ Operator Precedence
- C++ Operator Precedence
- C++ Operator Precedence
- zz C++ Operator Precedence
- C++ Operator Precedence
- C + + operator precedence list
- C++ Operator Precedence
- rc : C++ Operator Precedence
- [C++]C++ Operator Precedence
- 关于POX中的lib.revent.py阅读分析
- 浅述道路护栏的设计要求
- 计算机电脑账户为来宾账户,又不知道管理员密码,进入来宾账户操作权限受限
- 关于 hosts DNS解析
- 关于ThreadPoolExecutor的解析
- R:Operator Syntax and Precedence
- ORA-00600
- HDU 1848 Fibonacci again and again 博弈论SG函数
- 在键盘上加自定义 按钮
- android:windowSoftInputMode属性详解
- cocos2d-x使用tinyxml2解析&存储xml
- QML基础——UI布局管理
- 【cocos2d-x游戏开发】触摸事件
- scrollview中包含viewpager导致viewpager左右滑动手势不灵敏的解决方案