raz / commit af361ec5

commit
af361ec5b1865b1710461fc3213b6799f06a145a
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
1e0e24af
Report draft 2026-10.11: an index is checked by its value, whatever its type

patch · log

1 file changed, +3 -1

doc/raz.md (history) modified +3 -1

@@ -610,7 +610,9 @@
610610 A check that fails prints to standard error where it is, as file, line
611611 and column, and what failed, with the values involved (`index 7 is out
612612 of range for a length of 5`), and stops the program with status 2.
613-An index or a bound may be of any integer type. A module that says
613+An index or a bound may be of any integer type, and is checked by its
614+value, whatever its type: a negative `I8`, or a `U64` past the length,
615+fails like any other. A module that says
614616 `check off;` (section 3) leaves these checks out of its code.
615617
616618 **Literals.** `[e1, e2, ...]` builds an array, and `{f: e, g: e, ...}`