[m-dev.] record syntax

Michael Day mikeday at corplink.com.au
Wed Nov 29 09:41:15 AEDT 2000


> 	:- type abstract(T).
> 	:- func field_a(abstract(T)) = int.
> 	:- func field_b(abstract(T)) = int.
> 	:- func field_c(abstract(T)) = int.
> 	:- func 'field_a:='(abstract(T), int) = int.
> 	:- func 'field_b:='(abstract(T), int) = int.
> 	:- func 'field_c:='(abstract(T), int) = int.

How come the 'field_blah:=' functions return int rather than abstract(T)?
And what is the mode of these functions?

Michael

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list