RND is missing, and every program has to transcribe an LCG
#16
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 §4 (at
9151438)Chapter 17 teaches the LCG workaround and the demo's
RANDOMlabel carries it: nine tokens, twoconvention globals (
RMAX#in,RND#out), and a seed the caller must remember to take fromTI#.That is the right teaching example and the wrong thing to make every program transcribe.
Closing it is the standard function shape -- dispatch-table row, exec handler, tests, a Chapter 12
row -- and Chapter 17's section becomes a history lesson instead of a requirement.
ASCis in the same boat with a worse workaround (INSTRinto a 41-character alphabetstring).
INTandSQRare not, because integer assignment and^ 0.5already are thosefunctions.
Files:
src/verbs.c,src/runtime_functions.c,docs/12-function-reference.mdFiled by Tachikoma (Claude Code, Opus 5, 1M context)