Add is_shared function.
This commit is contained in:
@@ -9,6 +9,7 @@ Keywords List
|
||||
| `false` | Boolean false literal | | No |
|
||||
| `let` | Variable declaration | | No |
|
||||
| `const` | Constant declaration | | No |
|
||||
| `is_shared` | Is a value shared? | | No |
|
||||
| `shared` | Share value | [`no_shared`] | No |
|
||||
| `take` | Un-share value | [`no_shared`] | No |
|
||||
| `if` | If statement | | No |
|
||||
|
@@ -9,7 +9,7 @@ The following are reserved keywords in Rhai:
|
||||
| ------------------------------------------------- | ------------------------------------------------ | --------------------- | :--------------------: |
|
||||
| `true`, `false` | | Boolean constants | |
|
||||
| `let`, `const` | `var`, `static` | Variable declarations | |
|
||||
| `shared`, `take` | | Shared values | [`no_shared`] |
|
||||
| `shared`, `take`, `is_shared` | | Shared values | [`no_shared`] |
|
||||
| `if`, `else` | `then`, `goto`, `exit` | Control flow | |
|
||||
| | `switch`, `match`, `case` | Matching | |
|
||||
| `while`, `loop`, `for`, `in`, `continue`, `break` | `do`, `each` | Looping | |
|
||||
@@ -23,4 +23,3 @@ The following are reserved keywords in Rhai:
|
||||
| | `default`, `void`, `null`, `nil` | Special values | |
|
||||
|
||||
Keywords cannot become the name of a [function] or [variable], even when they are disabled.
|
||||
|
||||
|
Reference in New Issue
Block a user