From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!Yr2L9qaRshuL+yFKTxsDBA.user.46.165.242.75.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Calling inherited primitive operations in Ada Date: Sat, 03 Sep 2022 20:00:00 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <67b32db0-c4db-466c-ac13-e597e008c762n@googlegroups.com> <401d6f59-2c28-4dd5-9fa6-fccf33b6d645n@googlegroups.com> <12cc33b1-2c39-4057-8a03-623064b06e8en@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="41061"; posting-host="Yr2L9qaRshuL+yFKTxsDBA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:fThay1WlYmnloaSFGSFXxs/wIg4= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:64285 List-Id: "Randy Brukardt" writes: > But they violate the #1 principle of the Ada.Containers: ease of > use. One principle that we insisted on was that a single instantiation > was the maximum we would use And this was one reason that I didn't put up any arguments at Ada Europe 2002 for the Ada 95 Booch Components to form a basis for Ada.Containers - you'd need 3 instantiations, one after the other. -- A company's Fleet holds a number of Cars. with BC.Containers.Collections.Bounded; with Cars; package My_Fleet is use type Cars.Car; package Abstract_Car_Containers is new BC.Containers (Cars.Car); package Abstract_Car_Collections is new Abstract_Car_Containers.Collections; package Fleets is new Abstract_Car_Collections.Bounded (Maximum_Size => 30); The_Fleet : Fleets.Collection; end My_Fleet; The other was a lack of consistency in the implementation (Length? Size?).