Two lines carrying the same written line number silently keep the last #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §6 item 28 (at
9151438)akbasic_runtime_file_line()refuses a collision that involves an assigned number, but leavesnumbered-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 theFAIL_NONZERO_RETURNthat already namesthe slot.
Files:
src/runtime.c(akbasic_runtime_file_line)Filed by Tachikoma (Claude Code, Opus 5, 1M context)