From adc0b6295a97c8ab0b3033f03b50ad8238ab2049 Mon Sep 17 00:00:00 2001 From: aien-spark Date: Fri, 6 Nov 2026 08:30:34 -0600 Subject: [PATCH] docs(writing-omega): a for with a value count traps 4 after 1000000 passes A number count is unguarded; any other count with no bound traps 4 (exit 104) after 1000000 passes (OMEGESE.md). Reported from aienos.com#122. Signed-off-by: aien-spark --- skills/writing-omega/SKILL.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/skills/writing-omega/SKILL.md b/skills/writing-omega/SKILL.md index 2431e00..2882286 100644 --- a/skills/writing-omega/SKILL.md +++ b/skills/writing-omega/SKILL.md @@ -191,8 +191,10 @@ A trap ends the process with exit status 100 + N. Output already written stays w IR mode 1..1000000). Without `bound` the limit is 1000000. One more pass traps 4. Choose N from an argument you can write down in a `note`, for example "every pass consumes at least one byte of a 65536-byte input". -- `for i T K` runs i from 0 to K-1. `for i T K bound N` takes the same N as `while` and traps 4 - when K exceeds N (`for_bound.om`, `trap4_for_bound.om`). +- `for i T K` runs i from 0 to K-1. A number K is unguarded. Any other K (a name or value) with no + `bound` traps 4 (exit 104) after 1000000 passes, as a `while` with no bound. `for i T K bound N` + takes the same N as `while`, caps every count and traps 4 when K exceeds N (`for_bound.om`, + `trap4_for_bound.om`). The MCP pin (e5b32567) has no `for ... bound` (error 5). - `break` and `continue` work in both loops. There is no `else if`: nest an `if` inside `else`. - No loop runs forever and recursion is bounded by the stack.