raz / commit 04f40714

commit
04f4071411bc4eb9eefe65cc38ea630e757be014
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
c62232a1
raz.md: ABS of an untyped constant beyond the I64s is an error, as section 2 has it

patch · log

1 file changed, +3 -2

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

@@ -868,8 +868,9 @@
868868 smallest value of the type gives itself, as `-x` does; for an unsigned
869869 type it is `x`. For a real it clears the sign bit: `ABS(-0.0)` is 0.0,
870870 `ABS` of a NaN is a NaN, and of minus infinity is infinity. Of a
871-constant it is a constant; of an untyped one, the untyped absolute
872-value, `ABS(-5)` is 5, which doesn't wrap.
871+constant it is a constant; of an untyped one, an untyped one,
872+`ABS(-5)` is 5, and a result beyond the `I64`s, `ABS(MIN(I64))`, is an
873+error, as for any arithmetic on untyped constants (section 2).
873874
874875 Relations compare as signed or unsigned according to the type.
875876