wip(0.S2): migrate - a var nothing writes becomes a let; a state is keyed by its module, directory or program, so every program's plan agrees; paths normalized; program states named SceneDemoState / scene_demo_st; the LSP reads state, mut and entry/handler parameters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:31:34 +03:00
parent 3eda72e8c2
commit 5ffe50ed02
463 changed files with 72045 additions and 67421 deletions

View file

@ -1,12 +1,10 @@
# shop/index.ludic - private names a neighbour also uses: seed, dice, LIMIT
module shop
export state ShopState {
dice: int = 100
}
var dice: int = 100
const LIMIT: int = 5
function seed(shop_st: ShopState) -> int {
return shop_st.dice + LIMIT
function seed() -> int {
return dice + LIMIT
}
export function shop_seed(shop_st: ShopState) -> int {
return seed(shop_st)
export function shop_seed() -> int {
return seed()
}

View file

@ -1,15 +1,13 @@
# weather/index.ludic - the same private spellings, its own; a local named dice is its own too
module weather
export state WeatherState {
dice: int = 20
}
var dice: int = 20
const LIMIT: int = 2
function seed(weather_st: WeatherState) -> int {
return weather_st.dice * LIMIT
function seed() -> int {
return dice * LIMIT
}
function roll(dice: int) -> int {
return dice + 1
}
export function weather_seed(weather_st: WeatherState) -> int {
return seed(weather_st) + roll(0)
export function weather_seed() -> int {
return seed() + roll(0)
}