From: darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet! mucs!m1!bevan@gatech.edu (Stephen J Bevan)
Subject: Re: Generic Instantiation as Subprogram Body?
Date: 15 Oct 92 08:50:54 GMT [thread overview]
Message-ID: <BEVAN.92Oct15095054@hippo.cs.man.ac.uk> (raw)
In article <11225@platypus.uofs.uofs.edu> beidler@guinness.cs.uofs.edu (Jack Be
idler) writes:
Since "<=" is equivalent to "not >" and ">=" is equivalent to "not <"
the package spec should be
generic
type T is range <>;
package P is
type U is private;
function "<" (l,r : U) return boolean;
function ">" (l,r : U) return boolean;
private
. . .
Is it "Stoopid machine!" or "Stoopid _____!"
If you want to reduce it to its minimum: "a < b" is equivalent to "b >
a" the package spec should be :-
generic
type T is range <>;
package PARTIAL_ORDER
type U is private;
function "<" (l,r:U) return boolean;
private
....
end
As to what/who is stupid, I'll leave that for others to decide :-)
bevan
next reply other threads:[~1992-10-15 8:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-10-15 8:50 darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet! [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-10-14 17:03 Generic Instantiation as Subprogram Body? yale.edu!jvnc.net!netnews.upenn.edu!uofs!guinness.cs.uofs.edu!beidler
1992-10-08 19:54 dog.ee.lbl.gov!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!hobbes.ph
1992-10-08 18:00 Douglas N. Surber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox