[mercury-users] !foo

Ralph Becket rafe at cs.mu.OZ.AU
Mon Mar 24 11:27:53 AEDT 2003


Michael Day, Monday, 24 March 2003:
> 
> Idea:
> 
> :- pred foo(int, string, !io).
> :- mode foo(in, out, !io).

As you point out, this rather falls down at the mode declaration.

My feeling is that state variable syntax should be recognised as just a
convenient shorthand and we should not try to pretend it has any direct
declarative reading.  That is, we should leave it out of the pred and
mode declarations.

- 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