[mercury-users] Semantics of 'new'
Douglas Auclair
dauclair at msn.com
Thu Feb 6 09:15:49 AEDT 2003
Hello, all,
In reviewing existential quantification, I can across the following code
snippet:
:- type univ ---> some [T] mkuniv(T).
univ(X) = 'new mkuniv'(X).
I didn't see an explanation of 'new' in the neither the Language reference
nor in the Library reference. What are the semantics of 'new'? For
example, are the following two unifications the same?
:- type movie ---> dvd(string).
movies = List :-
Animation = dvd("Emporer's New Groove"), % not new
Drama = 'new dvd'("Tadpole"), % using new
List = [Animation, Drama].
When does one use 'new' and when not?
Thanks.
Doug Auclair
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------------
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