[mercury-users] Event handling in mercury

Ralph Becket rbeck at microsoft.com
Mon Jul 23 22:39:02 AEST 2001


> From: Fergus Henderson [mailto:fjh at cs.mu.OZ.AU]
> Sent: 23 July 2001 12:55
> On 17-Jul-2001, Holger Krug <hkrug at rationalizer.com> wrote:
> > :- implementation
> > :- static foo = int. % my_mod_b__foo: private static mutvar
> > foo := expr.
> >
> > What is the typing and mode declaration for `:=' ? Is io_state
> > accessible in expr ?

I assume that these statics are only going to be available in
contexts where the io__state is available and that access/update
thereof will also have to go via the io__state?

> Yes, in my example I was assuming that `:=' would just be used for
> static initialization, and that if dynamic initialization based on the
> io__state is required then you'd use `io_store__set_mutvar' to
override
> the static initializer.

Ah, right.  Perhaps s/mutvar/static/ to be consistent?

- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list