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: border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2013 bug? Date: Fri, 09 Aug 2013 22:35:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <19fr4wmxmen$.gjbias2fj461$.dlg@40tude.net> <72539e4c-dddd-40e4-82e8-14c4f2016ccc@googlegroups.com> <1656c260-4488-42d8-8d31-0fde538470ee@googlegroups.com> <6ee1653b-7232-4a32-940d-25bb556a19d4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="ab63a21f76991e88ee5b3b5ea015b144"; logging-data="23119"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1CvXgTvz8IiCH+HPpNcm+a0MTujcR/Hc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:/TshHAaQh09u3LHnfAjwq0POt4o= sha1:V55frPcYJmj9T0ooFLKzGyaBQlg= Xref: number.nntp.dca.giganews.com comp.lang.ada:182902 Date: 2013-08-09T22:35:19+01:00 List-Id: Adam Beneschan writes: > It doesn't seem particularly useful to declare an untagged private > type whose full type is something that only the package, or a child > package, could derive types from. Ada.Containers manage to make derivation impractical quite well, by having a large number of functions with controlling parameters! In fact, I think containers in general are something you wouldn't really want to derive from; and (in the case I fell over - I needed set-like properties for vectors) I only needed 9 subprograms and cursors, so composition did the trick.