parser: an attribute before export is kept - @ToClients export event E was a local event (the attributes read in front of export were dropped when the declaration was parsed afresh one call down), as were @Sync / @Owned / @Server / @On / @Public ... before export; and export @ToClients event was refused. Attributes and export now read in either order into one declaration, and a wrapper marks what it added exported (g_at_keep goes); examples/networking/net_export and three schema cases (added, not run); reseeded, bootstrap-cfree fixpoint holds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
64adb052b4
commit
26b986de5b
7 changed files with 89034 additions and 88841 deletions
18
examples/networking/net_export.ludic
Normal file
18
examples/networking/net_export.ludic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# net_export.ludic - attributes and `export` in either order: `@ToClients export event` is as remote
|
||||
# as `export @ToClients event`, and `@Sync export property` / `@Owned export model` keep theirs.
|
||||
# (Before, the attributes read in front of `export` were dropped, and the event went local unsaid.)
|
||||
program NetExport {
|
||||
@ToClients
|
||||
export event Said { x: int = 0 }
|
||||
export @ToClients event Told { x: int = 0 }
|
||||
@ToServer export event Asked { x: int = 0 }
|
||||
@ToClients event Local { x: int = 0 }
|
||||
@Sync export property Spot { x: int = 0 }
|
||||
@Owned export model Walker { @Sync Spot }
|
||||
handler Talk phase Update {
|
||||
emit Said(x: 1)
|
||||
emit Told(x: 1)
|
||||
emit Asked(x: 1)
|
||||
emit Local(x: 1)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue