From c5a9376e7191a5df698d651371bae8e3c31220e6 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 16 Oct 2026 07:11:24 +0000 Subject: [PATCH] Rt.stop: its comment says the line feed it writes after msg The mend met in libro, whose first message ended in a line feed of its own and so printed a blank line after it. lib/Rt.raz, raz-lib.md and sbcl's Rt now say what stop writes: msg, and a line feed. --- diff --git a/PROPOSALS.md b/PROPOSALS.md index 8a12cba..738e8cb 100644 --- a/PROPOSALS.md +++ b/PROPOSALS.md @@ -680,17 +680,3 @@ `read` stays as it is. Library growth that breaks no program. Met in libro. - -## `Rt.stop`'s line feed, said - -`Rt.stop(msg)` writes `msg` and then a line feed, but its interface's -comment, and the library volume's, say "msg on standard error, then -exit with status 2": a program that ends its message with `\n`, as a -message to standard error usually is, prints a blank line after it. -libro's first did. - -The mend: the comment says "msg, and a line feed, on standard error, -then exit with status 2", in `lib/Rt.raz` and `doc/raz-lib.md`. No -program changes. - -Met in libro. diff --git a/doc/raz-lib.md b/doc/raz-lib.md index 6e1e9b3..6c2bdcd 100644 --- a/doc/raz-lib.md +++ b/doc/raz-lib.md @@ -46,7 +46,7 @@ const Full*: ERROR = "too many procedures to run at exit"; proc atExit*(p: proc): ERROR; (* p run when the program ends by exit *) proc exit*(status: INT); (* the atExit procedures, the last first, then the end *) -proc stop*(msg: []U8); (* msg on standard error, then exit with status 2 *) +proc stop*(msg: []U8); (* msg, and a line feed, on standard error, then exit with status 2 *) proc trace*; (* the calls under way, and their variables, on standard error *) ``` diff --git a/lib/Rt.raz b/lib/Rt.raz index cd528fa..8b5bc3a 100644 --- a/lib/Rt.raz +++ b/lib/Rt.raz @@ -131,8 +131,8 @@ Sys.exit(status); end; -(* Stops the program: says msg on standard error, then ends it by exit - with status 2, as a failed check does. *) +(* Stops the program: says msg, and then a line feed, on standard + error, then ends it by exit with status 2, as a failed check does. *) proc stop*(msg: []U8); begin _ := Sys.write(Sys.stderr, msg); diff --git a/sbcl/lib/Rt.raz b/sbcl/lib/Rt.raz index 1df23b5..3c9f2e1 100644 --- a/sbcl/lib/Rt.raz +++ b/sbcl/lib/Rt.raz @@ -45,7 +45,7 @@ (trace-calls); end; -(* msg on standard error, then exit with status 2 *) +(* msg, and a line feed, on standard error, then exit with status 2 *) proc stop*(msg: []U8); begin _ := Sys.write(Sys.stderr, msg);