From af361ec5b1865b1710461fc3213b6799f06a145a Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 21:04:35 +0000 Subject: [PATCH] Report draft 2026-10.11: an index is checked by its value, whatever its type --- diff --git a/doc/raz.md b/doc/raz.md index 7ec8b08..e9f720d 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -610,7 +610,9 @@ A check that fails prints to standard error where it is, as file, line and column, and what failed, with the values involved (`index 7 is out of range for a length of 5`), and stops the program with status 2. -An index or a bound may be of any integer type. A module that says +An index or a bound may be of any integer type, and is checked by its +value, whatever its type: a negative `I8`, or a `U64` past the length, +fails like any other. A module that says `check off;` (section 3) leaves these checks out of its code. **Literals.** `[e1, e2, ...]` builds an array, and `{f: e, g: e, ...}`