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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,25c6c17a48209275,start X-Google-Attributes: gid103376,public From: skip@taygeta.com (Skip Carter) Subject: Generics question Date: 1997/07/22 Message-ID: <5r37k9$h4p$1@kelp.mbay.net>#1/1 X-Deja-AN: 258199937 Distribution: world Organization: Taygeta Scientific Inc. Newsgroups: comp.lang.ada Date: 1997-07-22T00:00:00+00:00 List-Id: I have a computational algorithm that I've implemented that has the (admitedly unusual) property that it is perfectly valid for either arrays of Integers or arrays of Floats. As far as I can see I CANNOT make a generic version of the package that will work for both, e.g.: Generic Type Element is Type DataArray is Array(Natural Range<>) of Element; ..... Is there a way to do this ? or do I have to actually make two different copies (which differ only in the definition of ELEMENT). -- Everett (Skip) Carter Phone: 408-641-0645 FAX: 408-641-0647 Taygeta Scientific Inc. INTERNET: skip@taygeta.com 1340 Munras Ave., Suite 314 WWW: http://www.taygeta.com/ Monterey, CA. 93940