Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

counter

int

Value

0

Inc

func(n int)

Inc adds n to this version's own counter. It does NOT touch v0.

Open
OID
0fd3a2…917e:4
Inc details

Inspect func

Get

func() int

Get returns v0's counter plus this version's own. Reading across the version boundary is a plain non-crossing call: no realm is entered as a writer, so this stays queryable from vm/qeval and from Render.

Open
OID
0fd3a2…917e:6
Get details

Inspect func
counter : int =0
Inc : func(n int) Inspect
Get : func() int Inspect
Render : func(string) string Inspect