raz / commit 9d9bd745

commit
9d9bd745f415325b2ae3d2b37853ec3eb0a73dd5
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
a700688d
raz.md: BYTES of a slice is its elements, as PTR's; of another variable, ADR's rules and no volatile; a constant is no variable

patch · log

1 file changed, +7 -4

doc/raz.md (history) modified +7 -4

@@ -1017,10 +1017,13 @@
10171017 enumeration, a slice, a variant, a procedure type, `ERROR`, or a record
10181018 or array holding one, is an error. The slice is made, and checked, as
10191019 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).
10241027
10251028 `PTR(s)` is the first of the two words of `s` (section 5.3), and is not
10261029 checked. For a slice that isn't empty it is `ADR(s[0])`; for an empty