docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:37:29 +03:00
parent 19fcf60599
commit a476ec7976
79 changed files with 481 additions and 355 deletions

View file

@ -17,14 +17,16 @@ A child ended by a signal (macOS) answers <code>128</code> plus the signal numbe
```ludic
program Demo {
var game: int = -1
handler Watch phase Update {
if game >= 0 {
let code = Process.poll(handle: game)
state DemoState {
game: int = -1
}
handler Watch(demo_st: mut DemoState) phase Update {
if demo_st.game >= 0 {
let code = Process.poll(handle: demo_st.game)
if code >= 0 or code < -1 {
if code != 0 { print("the game crashed") }
Process.free(handle: game)
game = -1
Process.free(handle: demo_st.game)
demo_st.game = -1
}
}
}