The Mercury Project
[mercury-users] uniqueness

Home

News

Information
  Overview
  Features
  Documentation
  Papers
  Developers
  Events
  Reports

Mailing Lists
  Developers
  Users
  Search

Download
  Current Release
  Snapshot
  Old Releases

Related
  Applications
  MCORBA
  Contributing Code

Contact

Search

Subject: [mercury-users] uniqueness
From: Michael Day (mikeday@corplink.com.au)
Date: Fri Dec 01 2000 - 13:00:38 EST


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@cs.mu.oz.au
administrative address: owner-mercury-users@cs.mu.oz.au
unsubscribe: Address: mercury-users-request@cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request@cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



This mail archive was generated by hypermail 2b25 on Sun Dec 31 2000 - 00:40:03 EST.