execute a binary expression based on the value type selector
BinaryIndex
01 Syntax
SMRUCC.Rsharp.Runtime.Interop.Operator.BinaryIndex
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| addOperator | 1 | 请注意,因为这个函数不会进行重复判断,所以在调用这个函数之前可以通过BinaryIndex.hasOperator()) 函数来判断是否重复从而决定是否对之前的操作符进行覆盖还是抛出错误信息 |
| rightNull | 1 | execute a binary expression when the value of right is nothing |
| leftNull | 1 | execute a binary expression when the value of left is nothing |
| hasOperator | 1 | |
| Evaluate | 1 | |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| symbol | 1 | the operator symbol text |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| hashIndexCache | 1 | key=hascode1|hashcode2 |
05 Members
请注意,因为这个函数不会进行重复判断,所以在调用这个函数之前可以通过BinaryIndex.hasOperator() 函数来判断是否重复从而决定是否对之前的操作符进行覆盖还是抛出错误信息
Parameters
| Name | Type | Description |
|---|---|---|
left | RType | - |
right | RType | - |
[operator] | IBinaryOperator | - |
env | Environment | - |
execute a binary expression when the value of right is nothing
Parameters
| Name | Type | Description |
|---|---|---|
left | Object | - |
env | String | - |
execute a binary expression when the value of left is nothing
Parameters
| Name | Type | Description |
|---|---|---|
right | Object | - |
env | String | - |
symbol
the operator symbol text
hashIndexCache
key=hascode1|hashcode2
Remarks
20221110 due to the reason of run parallel, so we
needs to lock this cache list for avoid lock error.
System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
ToString()