From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96daa6f775bc14b9,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-02 09:27:14 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.165.93.117!newsfeed.wirehub.nl!surfnet.nl!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!pluto.his.se!10.185.70.37 From: Michael Andersson Newsgroups: comp.lang.ada Subject: Generics??? Date: Mon, 02 Jul 2001 18:33:30 -0400 Organization: Chalmers University of Technology Message-ID: <3B40F6BA.63A5C0FB@ida.his.se> NNTP-Posting-Host: pluto.his.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nyheter.chalmers.se 994091227 21894 193.10.178.51 (2 Jul 2001 16:27:07 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 2 Jul 2001 16:27:07 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdk i686) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:9335 Date: 2001-07-02T16:27:07+00:00 List-Id: 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