raz / commit 92592e25

commit
92592e25b6fabd0e64188f28c3dd4d935b542f11
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
c9afcdf2
PROPOSALS.md: what is left out confirmed; raz-lib: a signal before wait, by catch and ready

patch · log

2 files changed, +17 -6

PROPOSALS.md modified +8 -6

@@ -2878,12 +2878,14 @@
28782878 **Recommendation:** take; it makes `Doc man` serve any library, and
28792879 `Doc.raz` loses its fixed text and its date.
28802880
2881-## Left out, to confirm
2881+## Left out
28822882
2883-What the collation of 2026-10-22 recommends leaving out, each with its
2884-reason. The owner confirms or moves an item into a proposal; what is
2885-confirmed is marked "Not planned" in `~/r/RAZ-GAPS.md`.
2883+What the collation of 2026-10-22 recommended leaving out, each with its
2884+reason; it is marked "Not planned" in `~/r/RAZ-GAPS.md`.
28862885
2886+**Status.** Confirmed by the owner on 2026-10-23, but for the exported
2887+array, parked with `[]const T`.
2888+
28872889 ### The language
28882890
28892891
@@ -2892,7 +2894,7 @@
28922894 - Records don't compare with `=` — padding, reals (`-0.0`, NaN) and slices make a byte compare wrong; a `same` procedure says what equal means. Confirmed by the owner, 2026-10-22.
28932895 - No type of its own for an array — a one-field record keeps two hashes apart, as it keeps generic arrays (owner's idiom).
28942896 - No exporting a record's fields as a whole — each `*` is the reader's mark of what is public; `Mxlib` is a C mirror, made by a program.
2895-- An exported array can't be read as a slice outside its module — a slice can be written through; "A slice that can't be written: `[]const T`" in PROPOSALS.md would answer it.
2897+- An exported array can't be read as a slice outside its module — a slice can be written through; "A slice that can't be written: `[]const T`" in PROPOSALS.md would answer it. Parked by the owner on 2026-10-23, with `[]const T`, for the safety thaw.
28962898 - An exported variable can't be assigned from outside — Oberon's read-only export; a setter shows who writes.
28972899 - A generic instance isn't reachable through the module that imported it — no bug: an import's name is never exported (3); export a type of the instance, or import it again.
28982900 - `I32` doesn't widen to `INT` — `INT` may be 16 bits (5.1), so the widening would not hold everywhere.
@@ -2929,7 +2931,7 @@
29292931 answered: `catch` SIGCHLD with the others and wait in `ready` on
29302932 catch's fd (child, signal or deadline at once), then `wait(pid,
29312933 false)`; `ignore(sig, false)` gives a caught signal its default back.
2932- Worth a paragraph in the library volume, not a procedure.
2934+ Worth a paragraph in the library volume (written there), not a procedure.
29332935 - No word from the kernel when a file changes — inotify is Linux's,
29342936 with no match in the C backend's other systems or Moss; a 300 ms
29352937 look serves.

doc/raz-lib.md (history) modified +9 -0

@@ -616,6 +616,15 @@
616616 so, as a program in the background or under `nohup` finds `sigInt` and
617617 `sigHup`: it should leave those alone, and `handle` or `catch` the rest.
618618
619+To wait for a child, a signal or a time, whichever is first, `catch`
620+`sigChld` with the other signals and wait in `ready` on `catch`'s fd:
621+a child that ends makes `sigChld` ready there, as a signal that came
622+before the wait does, since `catch` holds it until `caught` takes it,
623+so none falls between a `wait` that found nothing and the sleep after
624+it. When the fd is ready, call `caught`, then `wait(pid, false)`.
625+`handle` can't do this: a signal noted just before the call it should
626+break isn't seen by it.
627+
619628 `handle` is for a program that must see a signal while it waits in a
620629 system call, as a shell waiting for its foreground program, or for a
621630 key, sees Ctrl-C: the signal is noted, and the call it comes during,