From 9d9bd745f415325b2ae3d2b37853ec3eb0a73dd5 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 23 Oct 2026 12:37:21 +0100 Subject: [PATCH] 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 --- diff --git a/doc/raz.md b/doc/raz.md index d37eb38..bf4cd84 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -1017,10 +1017,13 @@ enumeration, a slice, a variant, a procedure type, `ERROR`, or a record or array holding one, is an error. The slice is made, and checked, as any slice of the variable is, so its bytes follow the rules for it: the -bytes of a local can't be returned (section 7.3), and a `const` -parameter, a view, a volatile variable and a string constant are -errors, as they are for `ADR`. The bytes are in the target's order -(appendix A). +bytes of a local can't be returned (section 7.3). Of a slice they are +its elements, as `PTR(s)` gives them, whatever holds the slice. Of any +other variable they are its own, as `ADR` gives them: a `const` +parameter, another module's variable, a view and a field of a packed +record are errors, as they are for `ADR`, and so is a volatile variable. +`x` must be a variable: a constant, a string constant too, is an error. +The bytes are in the target's order (appendix A). `PTR(s)` is the first of the two words of `s` (section 5.3), and is not checked. For a slice that isn't empty it is `ADR(s[0])`; for an empty