[mercury-users] uniqueness

Michael Day mikeday at corplink.com.au
Fri Dec 1 13:00:38 AEDT 2000


Why does this give a mode error which must be removed by performing an
explicit copy:

:- pred pack(a, b, c, structure).
:- mode pack(di, di, di, uo) is det.

pack(A, B, C, s(A, B, C)).

Is this just running into the compiler's current limitations with unique
modes again?

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