wip(0.S3): ui blocks, scene on enter/exit, hooks, machines over a state's field, namespace and engine-system injection; a reference out of a read-only state or a module let is read-only; deps counts writes into another module's state; the rejected examples hold states
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4919c9c2fc
commit
e7f8ee6b91
31 changed files with 100137 additions and 72476 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# L3: a variable answers a member that takes nothing; price takes an int, so it binds a function
|
||||
# L3: a state's field answers a member that takes nothing; price takes an int, so it binds a function
|
||||
program PortVarArgs {
|
||||
port Purse { price: fn(int) -> int }
|
||||
var g_rate: int = 3
|
||||
bind Purse { price: g_rate }
|
||||
state Rates { rate: int = 3 }
|
||||
bind Purse { price: Rates.rate }
|
||||
entry {
|
||||
print(Purse.price(2))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue