comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Array Index: substitute integer with enumeration
Date: Fri, 5 Jun 2020 19:15:46 +0200
Date: 2020-06-05T19:15:46+02:00	[thread overview]
Message-ID: <rbduk2$c28$1@dont-email.me> (raw)
In-Reply-To: <hjv5urFpc0fU1@mid.individual.net>

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

  reply	other threads:[~2020-06-05 17:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-04 16:54 Array Index: substitute integer with enumeration hreba
2020-06-04 17:49 ` Jeffrey R. Carter
2020-06-05 15:16   ` hreba
2020-06-05 17:15     ` Jeffrey R. Carter [this message]
2020-06-09 17:25 ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox