| | @@ -1017,10 +1017,13 @@ |
| 1017 | 1017 | enumeration, a slice, a variant, a procedure type, `ERROR`, or a record |
| 1018 | 1018 | or array holding one, is an error. The slice is made, and checked, as |
| 1019 | 1019 | any slice of the variable is, so its bytes follow the rules for it: the |
| 1020 | | -bytes of a local can't be returned (section 7.3), and a `const` |
| 1021 | | -parameter, a view, a volatile variable and a string constant are |
| 1022 | | -errors, as they are for `ADR`. The bytes are in the target's order |
| 1023 | | -(appendix A). |
| 1020 | +bytes of a local can't be returned (section 7.3). Of a slice they are |
| 1021 | +its elements, as `PTR(s)` gives them, whatever holds the slice. Of any |
| 1022 | +other variable they are its own, as `ADR` gives them: a `const` |
| 1023 | +parameter, another module's variable, a view and a field of a packed |
| 1024 | +record are errors, as they are for `ADR`, and so is a volatile variable. |
| 1025 | +`x` must be a variable: a constant, a string constant too, is an error. |
| 1026 | +The bytes are in the target's order (appendix A). |
| 1024 | 1027 | |
| 1025 | 1028 | `PTR(s)` is the first of the two words of `s` (section 5.3), and is not |
| 1026 | 1029 | checked. For a slice that isn't empty it is `ADR(s[0])`; for an empty |