Two lines carrying the same written line number silently keep the last #11

Open
opened 2026-08-02 19:04:17 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §6 item 28 (at 9151438)

akbasic_runtime_file_line() refuses a collision that involves an assigned number, but leaves
numbered-onto-numbered alone -- which is what a file with 10 PRINT "A" twice has always done.

A duplicate in a hand-written file is a mistake rather than an intent, and refusing it would be
consistent with the other three cases.

Not changed with the rest because it is the one collision that can appear in an existing
program
, so it carries corpus risk the others do not: 41 reference cases and 22 local ones would
all have to be shown clean first. src/runtime.c, in the FAIL_NONZERO_RETURN that already names
the slot.

Files: src/runtime.c (akbasic_runtime_file_line)


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §6 item 28 (at 9151438) `akbasic_runtime_file_line()` refuses a collision that involves an *assigned* number, but leaves numbered-onto-numbered alone -- which is what a file with `10 PRINT "A"` twice has always done. **A duplicate in a hand-written file is a mistake rather than an intent**, and refusing it would be consistent with the other three cases. **Not changed with the rest because it is the one collision that can appear in an existing program**, so it carries corpus risk the others do not: 41 reference cases and 22 local ones would all have to be shown clean first. `src/runtime.c`, in the `FAIL_NONZERO_RETURN` that already names the slot. **Files:** `src/runtime.c` (`akbasic_runtime_file_line`) --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.1.x milestone 2026-08-02 19:04:17 -04:00
tachikoma added the defectblast-radius:lowstatus::grooming labels 2026-08-02 19:04:17 -04:00
Sign in to join this conversation.