[Ur] stateful structure?
Adam Chlipala
adamc at impredicative.com
Wed Nov 2 18:53:58 EDT 2011
Marc Weber wrote:
> You want this interface instead:
> structure Stateful =
> struct
> val init : {} -> transaction counter_id
> val increment : counter_id -> transaction xbody
> end
>
I think a line [type counter_id] should be added to the signature.
Also, there's a parsing error here; you probably meant [: sig] instead
of [= struct]. Beside that, this is the approach I had in mind.
Without using the FFI, it is not possible to store [source]s in global
state.
More information about the Ur
mailing list