From 90fc80c193453e8d5038530f310fc007f9ff9789 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 23 Oct 2026 01:19:28 +0000 Subject: 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 --- pseudocode-lib/string.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pseudocode-lib/string.cc') diff --git a/pseudocode-lib/string.cc b/pseudocode-lib/string.cc index c47899c..4395304 100644 --- a/pseudocode-lib/string.cc +++ b/pseudocode-lib/string.cc @@ -163,11 +163,7 @@ long long _string_impl_asc(void *Handle) { long long _string_impl_asc_char(char Ch) { return checked([&]() -> long long { return static_cast(Ch); }); } -void _string_impl_chr(void *Target, long long Code) { - checked([&] { - text(Target).assign(1, static_cast(static_cast(Code))); - }); -} +char _string_impl_chr_char(long long Code) { return static_cast(static_cast(Code)); } int _string_impl_is_num(void *Handle) { return checked([&]() -> int { double Number = 0; -- cgit v1.3.1-4-g156e