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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:43:: with SMTP id 64-v6mr264395ita.13.1527441766506; Sun, 27 May 2018 10:22:46 -0700 (PDT) X-Received: by 2002:a9d:5c8d:: with SMTP id a13-v6mr886028oti.0.1527441765792; Sun, 27 May 2018 10:22:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!v8-v6no4403310itc.0!news-out.google.com!f20-v6ni4176itd.0!nntp.google.com!v8-v6no4403309itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 27 May 2018 10:22:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.113.16.86; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 76.113.16.86 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: why "unconstrained subtype in component declaration" while said component given default value ? From: Shark8 Injection-Date: Sun, 27 May 2018 17:22:46 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:52734 Date: 2018-05-27T10:22:45-07:00 List-Id: On Sunday, May 27, 2018 at 1:07:08 AM UTC-6, Simon Wright wrote: >=20 > The Booch Components originally had the maximum length of a bounded > container fixed at generic instantiation, which is a very limiting > design. I can see the merits for it though. Package Small_Stack is new Stack(Element =3D> Integer, Maximum =3D> 2**4)= ; Package Large_Stack is new Stack(Element =3D> Integer, Maximum =3D> 2**10= ); LS : Large_Stack.Stack; SS : Small_Stack.Stack; These /should/ be different and incompatible types 98% of the time; the tim= es they shouldn't are usually some form of low-level work OR some form of g= eneric-thinking in a dynamic environment... and the last one is solvable w/= tagged-type/interface versions.