diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 09:35:23 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 09:35:23 +0000 |
| commit | c62473ae0f495c280759e8f285e5366855ad7a52 (patch) | |
| tree | 8efba8e5223813cede1d7af31d1dc4c11db04c54 /doc | |
| parent | 6b332f91c82da6e19efad92b58ac1d9c1bc9eec0 (diff) | |
docs: runtime diagnostics go to standard error
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/cpsc.1.md | 2 | ||||
| -rw-r--r-- | doc/language/cpsc-language-overview.7.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/cpsc.1.md b/doc/cpsc.1.md index 5b1369d..eb5140b 100644 --- a/doc/cpsc.1.md +++ b/doc/cpsc.1.md @@ -108,7 +108,7 @@ cpsc me.cps lib.cps -r With **-r**, return the executed program's exit status. MAIN's INTEGER result is truncated to 32 bits before returning to the operating system. In PATH mode, failure to launch `lli` or a child-process crash returns 1. -An uncaught program exception returns 1 after printing `Unhandled exception. Program terminated.` to standard output. Runtime check failures print the source line and error reason to standard output before throwing and can be handled with TRY/CATCH/ENDTRY. +An uncaught program exception returns 1 after printing `Unhandled exception. Program terminated.` to standard error. Runtime check failures print the source line and error reason to standard error before throwing and can be handled with TRY/CATCH/ENDTRY. # NOTES diff --git a/doc/language/cpsc-language-overview.7.md b/doc/language/cpsc-language-overview.7.md index b03e0df..58df76c 100644 --- a/doc/language/cpsc-language-overview.7.md +++ b/doc/language/cpsc-language-overview.7.md @@ -18,7 +18,7 @@ Literals include integers, decimal real numbers, TRUE/FALSE, strings in double q Declare variables before use. See DECLARE for built-in types and arrays, TYPE for records/enumerations/pointers, and CLASS for public/private fields and methods. -The compiler extensions TRY/CATCH/ENDTRY and THROW support anonymous exceptions with stack unwinding. Runtime check failures print the source line and error reason to standard output before throwing and can be caught. An uncaught exception also prints a generic termination message and returns status 1. There is no error object or what() support. +The compiler extensions TRY/CATCH/ENDTRY and THROW support anonymous exceptions with stack unwinding. Runtime check failures print the source line and error reason to standard error before throwing and can be caught. An uncaught exception also prints a generic termination message and returns status 1. There is no error object or what() support. Multi-file builds use the compiler extensions INCLUDE and GLOBAL. Pass every source file on the command line and include the files whose definitions are needed. The entry file contains the sole top-level executable code, or a parameterless FUNCTION MAIN returning INTEGER; definitions alone do not form a runnable program. |
