From f6b5564210d9a1cad4df73eb3f0b23b00e2c6597 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 16 Oct 2026 09:56:15 +0100 Subject: [PATCH] Tidy for v0.16.0: README's versions, raz(7), CLAUDE.md raz(7) says an array a call returns lives to its statement's end, and that an array constant typed []T takes its literal's length; CLAUDE.md the release and the reading of Sys.handle. --- diff --git a/CLAUDE.md b/CLAUDE.md index 9449def..f3de1a4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,11 +80,11 @@ ## Where things stand -v0.15.0, report 2026-10.27 (a slice of the frame returned is an -error; `Sys`'s `openMode`, `syncAll`, `lock`, `linkInfo` and -`Info.ino`; `Buf.spare`, and `Buf` stopping when out of memory; `Vec`, -a growable array), what porting sauce asked for, is the latest -release. `src/` is the +v0.16.0, report 2026-10.29 (an array a call returns lives to its +statement's end; an array constant typed `[]T` takes its literal's +length; `Sys` gains what a shell needs, among it `fork`, `exec`, +`handle` and `came`; `Map.done`, `Str.free`, `Files.load`), what +porting concha asked for, is the latest release. `src/` is the compiler in raz, built by itself (Self, done); the seed in `seed/` is frozen, and v0.9.1 was the last release it built. The compiler takes 1.4 times the Pascal one's time; `make kernels` measures `test/bench` @@ -226,6 +226,10 @@ (10), and isn't caught. - `Buf.add`, `str` and `spare`, and `Vec`'s growing, stop the program when the allocator has no room; `room` asks first. +- `Sys.handle`'s handler only notes the signal, with `XCHG`; it is + installed without `SA_RESTART`, so a call it breaks into is -4, which + `Out` and `Files` try again. Over C, `ready` and `readyFor` try `poll` + again after EINTR only when no signal `handle` took broke in. - An `extern` module variable is read-only for an importer, as the report says of every exported variable (3). - Warnings come only for a module with no errors. A procedure naming diff --git a/README.md b/README.md index c2a4965..6bf17cb 100644 --- a/README.md +++ b/README.md @@ -201,16 +201,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.15.0, report 2026-10.27 + raz 0.16.0, report 2026-10.29 The compiler's version is git's name for the commit it was built from: -`0.15.0` at the tag `v0.15.0`, `0.15.0-5-g38d29a8` five commits past it. +`0.16.0` at the tag `v0.16.0`, `0.16.0-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.15.0 -m 'raz 0.15.0, report 2026-10.27' - $ git push origin v0.15.0 + $ git tag -a v0.16.0 -m 'raz 0.16.0, report 2026-10.29' + $ git push origin v0.16.0 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make diff --git a/doc/raz.7 b/doc/raz.7 index ba89aa6..f763004 100644 --- a/doc/raz.7 +++ b/doc/raz.7 @@ -334,6 +334,8 @@ a record with its other fields zero, where the type is known; .Cm "{red, blue}" , a set. +.Cm "const Weekend: []Day = [sat, sun];" +takes its length from its literal [4]. .El .Sh CONVERSIONS [6.7] A type's name converts: @@ -519,6 +521,7 @@ returns several results. Returning a slice of a local array, of a value parameter, or of an array literal is an error: the frame it points into is gone [7.3]. +An array a call returns lives to the end of its statement [8]. A procedure is a value of its type, .Cm "proc(a, b: INT): BOOL" , or nil.