diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-23 01:19:28 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-23 01:19:28 +0000 |
| commit | 90fc80c193453e8d5038530f310fc007f9ff9789 (patch) | |
| tree | e324ea2c88f63610cc5f13f0b55114f12b5b8f98 /doc/language/function/cpsc-function-chr.7.md | |
| parent | 7c681c33e17550bfc8a0dc969129a2ea855a39fe (diff) | |
fix(stdlib)!: return CHAR from CHR
BREAKING CHANGE: CHR now returns CHAR instead of STRING, so user overloads and templates select or deduce CHAR for CHR(...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'doc/language/function/cpsc-function-chr.7.md')
| -rw-r--r-- | doc/language/function/cpsc-function-chr.7.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/language/function/cpsc-function-chr.7.md b/doc/language/function/cpsc-function-chr.7.md index 3ae8612..b67b0c6 100644 --- a/doc/language/function/cpsc-function-chr.7.md +++ b/doc/language/function/cpsc-function-chr.7.md @@ -7,14 +7,14 @@ cpsc-function-chr - convert a byte code to text # SYNOPSIS ```text -CHR(code : INTEGER) RETURNS STRING +CHR(code : INTEGER) RETURNS CHAR ``` # DESCRIPTION Provided by the standard string library, loaded and linked by default. -Convert the low eight bits of code to a one-byte string. The result is STRING, not CHAR, but a STRING of length 1 converts implicitly to CHAR on assignment. Use ASCII codes 1 to 127 for ordinary text; code 0 produces one NUL byte, so LENGTH(CHR(0)) is 1. +Convert the low eight bits of code to a CHAR. The result is CHAR, not STRING; a CHAR converts implicitly to STRING where a STRING is expected. Use ASCII codes 1 to 127 for ordinary text; code 0 produces one NUL byte, so LENGTH(CHR(0)) is 1. # EXAMPLE |
