spec: spell the AIR array type array<T, N>
';' starts a comment in text AIR, so [T; N] cannot be parsed. Recorded as an erratum in RFC 0005; source syntax may keep [T; N].
This commit is contained in:
7 files changed
+20
-19
No files matched your search
+2
-2
@@ -256,14 +256,14 @@ Any other change to format 0 — a different meaning, typing rule, trap behavior
|
||||
|
||||
### 8.8 Types and syntax of the features `ownership` and `arrays`
|
||||
|
||||
Feature membership: `local<T>`, `ref<T>`, `mut<T>` and the `from` clause belong to `ownership`; `[T; N]`, `slice<T>`, `slice_mut<T>` and multi-result binding belong to `arrays`. Using them without declaring the feature is `E0006` reason `feature_not_declared`.
|
||||
Feature membership: `local<T>`, `ref<T>`, `mut<T>` and the `from` clause belong to `ownership`; `array<T, N>`, `slice<T>`, `slice_mut<T>` and multi-result binding belong to `arrays`. Using them without declaring the feature is `E0006` reason `feature_not_declared`.
|
||||
|
||||
| Type | Class | Notes |
|
||||
|---|---|---|
|
||||
| `local<T>` | storage | frame storage holding a `T`; only an operand of `local.*` and `borrow.*` |
|
||||
| `ref<T>` | borrow | shared borrow |
|
||||
| `mut<T>` | borrow | exclusive borrow |
|
||||
| `[T; N]` | value | array of `N` values, `1 ≤ N ≤ 2^32`; copyable when `T` is |
|
||||
| `array<T, N>` | value | array of `N` values, `1 ≤ N ≤ 2^32`; copyable when `T` is |
|
||||
| `slice<T>` | borrow | shared borrow of a contiguous range |
|
||||
| `slice_mut<T>` | borrow | exclusive borrow of a contiguous range |
|
||||
|
||||
|
||||
Reference in new issue
Block a user