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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Array Index: substitute integer with enumeration Date: Fri, 5 Jun 2020 19:15:46 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 5 Jun 2020 17:15:46 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8781d6342bd6d172eec5f0a7fdf8d6a8"; logging-data="12360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2kQ9kFx+fMT/uBwx3C2hs3wPNI0Xc+as=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cancel-Lock: sha1:JUb3bDznCM+WWeCP/qSQr64njRU= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58974 Date: 2020-06-05T19:15:46+02:00 List-Id: On 6/5/20 5:16 PM, hreba wrote: >> >> Unfortunately the type is defined in an external library, so I cannot > change it. The definition of the library's point type isn't important. What's important is that clients who want to use another coordinate system can use whatever definition of a point they think is appropriate, provided they can convert it to and from the library's point type. You can still define a generic that will allow the use of the library with any arbitrary point type, provided it can be converted to and from the library's point type. -- Jeff Carter "Sheriff murdered, crops burned, stores looted, people stampeded, and cattle raped." Blazing Saddles 35