raz / commit ad88be9b

commit
ad88be9b18e4aead900949b3b322425ea942412f
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
8b97e6ce
release
v0.15.0
Tidy for v0.15.0: README's versions and library, man pages, CLAUDE.md

raz(7) and the tutorial say a slice of the frame can't be returned,
and name Vec among the generic modules; CLAUDE.md the release and the
readings it took.

patch · log

4 files changed, +25 -11

CLAUDE.md modified +11 -3

@@ -78,9 +78,10 @@
7878
7979 ## Where things stand
8080
81-v0.14.0, report 2026-10.26, the thaw for `INT` and views (an `INT`
82-widens to an `I64` wherever it goes to one; `v.(T)`; `Sys`'s
83-`position`, `truncate`, `sync` and `infoOf`; `Opt.at`), is the latest
81+v0.15.0, report 2026-10.27 (a slice of the frame returned is an
82+error; `Sys`'s `openMode`, `syncAll`, `lock`, `linkInfo` and
83+`Info.ino`; `Buf.spare`, and `Buf` stopping when out of memory; `Vec`,
84+a growable array), what porting sauce asked for, is the latest
8485 release. `src/` is the
8586 compiler in raz, built by itself (Self, done); the seed in `seed/` is
8687 frozen, and v0.9.1 was the last release it built. The compiler takes
@@ -204,6 +205,13 @@
204205 and the library it imports (`Str`, `Bytes`, ...), use neither views
205206 nor the widening of 2026-10.26, since the seed builds them, until a
206207 release makes a new seed.
208+- A returned slice of the frame (report 2026-10.27, 7.3) is caught by
209+ `Item.frame`, which sees only the expression: a slice held first in a
210+ local slice variable or a record, stored, or come back from a call,
211+ isn't, and is left undefined (10). `ret` and `keep`, in
212+ PROPOSALS.md, would close it; the owner keeps it open for now.
213+- `Buf.add`, `str` and `spare`, and `Vec`'s growing, stop the program
214+ when the allocator has no room; `room` asks first.
207215 - An `extern` module variable is read-only for an importer, as the
208216 report says of every exported variable (3).
209217 - Warnings come only for a module with no errors. A procedure naming

README.md (history) modified +6 -6

@@ -168,8 +168,8 @@
168168 `Rt` (ending the program, failed checks, signals), `Sys` (system calls), `Out`
169169 (buffered output), `C`, `Lock`, `Thread` (threads without C), `Mem`,
170170 `Heap`, `Arena`, `Str`, `Bytes`, `Buf`, `Fmt`, `Math`, `Files`, `Opt` (a command
171-line read through one table), `List(T)`, `Map(K, V; hash, eq)` and
172-`Sort(T; less)`. Volume 2 of the report, `doc/raz-lib.md`, gives each one's interface,
171+line read through one table), `List(T)`, `Map(K, V; hash, eq)`,
172+`Vec(T)` (a growable array) and `Sort(T; less)`. Volume 2 of the report, `doc/raz-lib.md`, gives each one's interface,
173173 and `tools/Doc.raz` prints it from the module's file:
174174
175175 $ ./raz -o Doc tools/Doc.raz && ./Doc lib/Str.raz
@@ -201,16 +201,16 @@
201201 The compiler says its own version and that of the report it follows:
202202
203203 $ ./raz --version
204- raz 0.14.0, report 2026-10.26
204+ raz 0.15.0, report 2026-10.27
205205
206206 The compiler's version is git's name for the commit it was built from:
207-`0.14.0` at the tag `v0.14.0`, `0.14.0-5-g38d29a8` five commits past it.
207+`0.15.0` at the tag `v0.15.0`, `0.15.0-5-g38d29a8` five commits past it.
208208 To release, check `main` and tag it; the tag's message is what
209209 `raz --version` will print:
210210
211211 $ make check
212- $ git tag -a v0.14.0 -m 'raz 0.14.0, report 2026-10.26'
213- $ git push origin v0.14.0
212+ $ git tag -a v0.15.0 -m 'raz 0.15.0, report 2026-10.27'
213+ $ git push origin v0.15.0
214214
215215 GitHub then builds and checks the tag, and makes a release of it with
216216 a tarball of `raz`, its `lib/` and its manual pages, made by `make

doc/raz-tutorial.7 (history) modified +6 -2

@@ -368,6 +368,10 @@
368368 up to, but not including,
369369 .Cm hi ,
370370 and an array goes silently where a slice is wanted.
371+A slice of a local array is good only while its procedure runs, so
372+returning one is an error: take the array as a
373+.Cm var
374+parameter instead.
371375 .Pp
372376 A string is a slice of bytes,
373377 .Cm []U8 ,
@@ -1063,8 +1067,8 @@
10631067 .Cm before
10641068 is here.
10651069 The library's
1066-.Cm List , Map
1067-and
1070+.Cm List , Map , Vec ,
1071+a growable array, and
10681072 .Cm Sort
10691073 are generic modules:
10701074 .Bd -literal -offset indent

doc/raz.7 (history) modified +2 -0

@@ -517,6 +517,8 @@
517517 .It
518518 .Cm "proc f(x: INT): (INT, ERROR);"
519519 returns several results.
520+Returning a slice of a local array, of a value parameter, or of an
521+array literal is an error: the frame it points into is gone [7.3].
520522 A procedure is a value of its type,
521523 .Cm "proc(a, b: INT): BOOL" ,
522524 or nil.