wip(0.S3): packages and examples migrated again from their pre-0.S sources in one run

ludic migrate state packages <every example program> packages/ludic.lab/example/plate.ludic
  1804 vars into 126 states, 64 into lets; 23498 edits in 460 files

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 5ffe50ed02
commit 19fcf60599
459 changed files with 17862 additions and 17603 deletions

View file

@ -8,15 +8,17 @@ program PortVars {
money: fn() -> int
price: fn(int) -> int
}
var g_money: int = 40
var g_rate: int = 3
state PortVarsState {
g_money: int = 40
}
let g_rate: int = 3
function priced(n: int) -> int {
return n * g_rate
}
bind Purse { money: g_money, price: fn priced }
entry {
bind Purse { money: PortVarsState.g_money, price: fn priced }
entry (port_vars_st: mut PortVarsState) {
let a = Purse.money()
g_money += 5
port_vars_st.g_money += 5
print(`{a} {Purse.money()} {Purse.price(4)}`)
}
}