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,15 +17,15 @@ Keep the frame loop going while hidden so the child can be polled, but there is
```ludic skip
program Launcher {
var game: int = -1
function play() -> void {
game = Process.spawn(game_path(), new []string)
if game >= 0 { App.window_hide() }
state Child { game: int = -1 }
function play(c: mut Child) -> void {
c.game = Process.spawn(game_path(), new []string)
if c.game >= 0 { App.window_hide() }
}
handler Watch phase Update {
if game >= 0 and Process.poll(game) != -1 {
Process.free(game)
game = -1
handler Watch(c: mut Child) phase Update {
if c.game >= 0 and Process.poll(c.game) != -1 {
Process.free(c.game)
c.game = -1
App.window_show()
}
}