Skip to content

Update the Lua notes for require caching, whole-file reads and yearday - #11

Merged
siliconwitch merged 1 commit into
mainfrom
dev
Oct 29, 2026
Merged

siliconwitch merged 1 commit into
mainfrom
dev

Conversation

@siliconwitch

Copy link
Copy Markdown
Member

Updates the hand-written s2-lua notes for siliconwitchery/s2-firmware#92:

  • require runs a file once and returns the same value on later calls.
  • handle:read() with no options returns the whole file, and raises not enough memory when it does not fit.
  • yearday is no longer listed as 0-based.

#10 regenerates lua-api.md from the same docs change.

Firmware now caches require, returns the whole file from a bare read, and starts yearday at 1, so the notes no longer warn about the old behaviour.
@siliconwitch
siliconwitch merged commit f33707d into main Oct 29, 2026
1 check passed
@siliconwitch
siliconwitch deleted the dev branch October 29, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant