[mercury-users] record field access syntax

Michael Day mikeday at bigpond.net.au
Sun Jan 6 18:29:35 AEDT 2002


> What am I missing about this lovely syntactic sugar?

That it is indeed only syntactic sugar, and does not add destructive 
update of variables to the language.

	T = T0 ^ one := 3	% this will work

T0 is not modified, T gets its value but with the one field set to 3.

Michael

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