aboutsummaryrefslogtreecommitdiff
path: root/AGENTS
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 15:04:43 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 15:04:43 +0000
commit11266ea732e2533081283290c3c865c234e79b2a (patch)
tree2fbc4104a7fa6edf40f38073821613cf0de9fee4 /AGENTS
parent463efecf6ddcea31efada01ddd8a7695604ab80f (diff)
fix(stdlib): make IS_NUM agree with STR_TO_NUM and explain conversion errors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS')
-rw-r--r--AGENTS/PITFALLS/core-language.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/AGENTS/PITFALLS/core-language.md b/AGENTS/PITFALLS/core-language.md
index 29c3fa4..219c0d8 100644
--- a/AGENTS/PITFALLS/core-language.md
+++ b/AGENTS/PITFALLS/core-language.md
@@ -30,7 +30,7 @@ source, most also by compiling and running test programs.
- **`/` always yields REAL** (double FDiv), even for two INTEGERs; integer division is
DIV/MOD only.
- CHR returns an owning one-byte STRING, not CHAR; CHR(0) retains one NUL byte.
- - STR_TO_NUM always returns REAL and uses std::stod with full-consumption checks.
+ - STR_TO_NUM always returns REAL and shares parseNumber (strtod, full consumption, overflow rejected) with IS_NUM.
- NUM_TO_STR uses std::to_string, preserving the full signed i64 range and six
fractional digits for REAL.
- **`getExprTypeInfo` returns nullptr** for expressions it can't classify (null-check