From: Michael Andersson <a98mican@ida.his.se>
Subject: Generics???
Date: Mon, 02 Jul 2001 18:33:30 -0400
Date: 2001-07-02T16:27:07+00:00 [thread overview]
Message-ID: <3B40F6BA.63A5C0FB@ida.his.se> (raw)
Hi!
How do I specify that the generic parameter is a integer or a float. I
know that you can use
type T is range <> to specify that T is any Integer-type and that you
can use type T is digit <> to specify that T is any type of float. But
how can I use both at the same time?
I've tried to use type T is private but then I can't use any of the
+,-,*,/ operators.
Need your help, please!
/Michael Andersson
next reply other threads:[~2001-07-02 22:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-02 22:33 Michael Andersson [this message]
2001-07-02 17:48 ` Generics??? James Rogers
2001-07-02 18:54 ` Generics??? Ehud Lamm
-- strict thread matches above, loose matches on Subject: below --
2001-07-02 18:42 Generics??? Beard, Frank
2001-07-03 10:32 ` Generics??? Anders Wirzenius
2001-07-03 17:31 ` Generics??? Stephen Leake
2001-07-03 19:09 ` Generics??? tmoran
2001-07-04 5:30 ` Generics??? Anders Wirzenius
1992-09-14 15:00 Generics? cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!net
1992-09-09 5:26 Generics? Andrew Dunstan
1992-09-09 1:34 Generics? Rob Allen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox