[mercury-users] Field updates and state variables

Julien Fischer juliensf at cs.mu.OZ.AU
Mon Jul 3 15:39:54 AEST 2006


On Mon, 3 Jul 2006, Peter Schachte wrote:

> What would be *really* useful would be to integrate state variable and
> setter syntax, by translating
>
> 	!Var ^ Acessors := Value
>
> to !:Var = !.Var ^ Accessors := Value.  Maybe mercury already does
> that, but I couldn't find it in the reference manual.  Then you could
> just write
>
> 	!S ^ elem(Key) := Value
>

I agree.  This syntax would be nice.

Julien.
--------------------------------------------------------------------------
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