[mercury-users] constructor class syntax

David Glen JEFFERY dgj at hydra.cs.mu.oz.au
Wed Nov 3 18:51:48 AEDT 1999


On 03-Nov-1999, Michael Day <mikeday at corplink.com.au> wrote:
> 
> > :- typeclass ordered_container(C, T) <= container(C), ordered(T) where
> > [
> > 	func lowest_element(C(T)) = T <= ordered(T),
> > 	func highest_element(C(T)) = T <= ordered(T),
> > 	...
> > 	and so forth
> > ].
> 
> Ahh now that seems much more obvious. Would all the methods still need the
> constraint that T be ordered though?

No, they wouldn't... that is a typo.



dgj
-- 
David Jeffery (dgj at cs.mu.oz.au) | If your thesis is utterly vacuous
PhD student,                    | Use first-order predicate calculus.
Dept. of Comp. Sci. & Soft. Eng.|     With sufficient formality
The University of Melbourne     |     The sheerist banality
Australia                       | Will be hailed by the critics: "Miraculous!"
                                |     -- Anon.
--------------------------------------------------------------------------
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