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!reader02.eternal-september.org!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: how to force the Small aspect of a new type derived from the generic formal type ? Date: Thu, 25 Jan 2018 18:35:36 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1aaa851e-495a-4dd4-8db7-0fd84ee8225f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 25 Jan 2018 18:35:36 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="d6dbc445eb30f83fb267d2da0fe4869a"; logging-data="14212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193LlgVOE5CihFj4PiZOG+4Nbq8dDBVVVg=" User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:2ZNSbvturZBF3ZqIM9/Eyg+Vh58= sha1:AmV68os78ZqtbsbU5DnmirZdUAg= Xref: reader02.eternal-september.org comp.lang.ada:50149 Date: 2018-01-25T18:35:36+00:00 List-Id: Randy Brukardt wrote: > > ...; you can't use most representation > aspects on a type derived from a generic formal type. > > Even if you were not in a generic unit, you can't usually put representation > aspects on a derived type (they usually have to match the original type). The “usually” calls attention to types derived from others precisely to make their objects have a representation that differs from those of the original type. (The case when a type conversion changes the representation.) Plausibly, this feature does not blend with types being generic in any sense.