raz / commit c5a9376e

commit
c5a9376e7191a5df698d651371bae8e3c31220e6
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
62512d22
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.

patch · log

4 files changed, +4 -18

PROPOSALS.md modified +0 -14

@@ -680,17 +680,3 @@
680680 `read` stays as it is. Library growth that breaks no program.
681681
682682 Met in libro.
683-
684-## `Rt.stop`'s line feed, said
685-
686-`Rt.stop(msg)` writes `msg` and then a line feed, but its interface's
687-comment, and the library volume's, say "msg on standard error, then
688-exit with status 2": a program that ends its message with `\n`, as a
689-message to standard error usually is, prints a blank line after it.
690-libro's first did.
691-
692-The mend: the comment says "msg, and a line feed, on standard error,
693-then exit with status 2", in `lib/Rt.raz` and `doc/raz-lib.md`. No
694-program changes.
695-
696-Met in libro.

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

@@ -46,7 +46,7 @@
4646 const Full*: ERROR = "too many procedures to run at exit";
4747 proc atExit*(p: proc): ERROR; (* p run when the program ends by exit *)
4848 proc exit*(status: INT); (* the atExit procedures, the last first, then the end *)
49-proc stop*(msg: []U8); (* msg on standard error, then exit with status 2 *)
49+proc stop*(msg: []U8); (* msg, and a line feed, on standard error, then exit with status 2 *)
5050 proc trace*; (* the calls under way, and their variables, on standard error *)
5151 ```
5252

lib/Rt.raz (history) modified +2 -2

@@ -131,8 +131,8 @@
131131 Sys.exit(status);
132132 end;
133133
134-(* Stops the program: says msg on standard error, then ends it by exit
135- with status 2, as a failed check does. *)
134+(* Stops the program: says msg, and then a line feed, on standard
135+ error, then ends it by exit with status 2, as a failed check does. *)
136136 proc stop*(msg: []U8);
137137 begin
138138 _ := Sys.write(Sys.stderr, msg);

sbcl/lib/Rt.raz (history) modified +1 -1

@@ -45,7 +45,7 @@
4545 (trace-calls);
4646 end;
4747
48-(* msg on standard error, then exit with status 2 *)
48+(* msg, and a line feed, on standard error, then exit with status 2 *)
4949 proc stop*(msg: []U8);
5050 begin
5151 _ := Sys.write(Sys.stderr, msg);