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 10.99.96.4 with SMTP id u4mr15755542pgb.61.1498866543482; Fri, 30 Jun 2017 16:49:03 -0700 (PDT) X-Received: by 10.36.19.1 with SMTP id 1mr654011itz.4.1498866543441; Fri, 30 Jun 2017 16:49:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!v202no344697itb.0!news-out.google.com!s132ni3059itb.0!nntp.google.com!188no410536itx.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 30 Jun 2017 16:49:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.114.51.240; posting-account=HN9B-woAAACqJDcuOavWYdk7s1Vm8fv7 NNTP-Posting-Host: 68.114.51.240 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3df6404a-588d-4e2d-a189-1d1e32ce9f5d@googlegroups.com> Subject: Re: Ada Annoyances From: pythoner6@gmail.com Injection-Date: Fri, 30 Jun 2017 23:49:03 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47244 Date: 2017-06-30T16:49:03-07:00 List-Id: On Friday, June 30, 2017 at 11:02:48 AM UTC-4, Norman Worth wrote: > You should not use tagged types where they are not needed. It messes up= =20 > the code. In general, if you are not going to have derived types, the=20 > base type should not be tagged. =20 In some cases you do not have a choice; this is why I started this thread i= n the first place. If you want to define custom indexing, custom iteration = or use the object.method() syntax, you must use tagged types, regardless of= whether or not you really need tagged types. It seems odd to me that you m= ust pay an unnecessary cost to use these features just because the language= says so (perhaps there is a reason behind the decision, but I can't see wh= y), even if that cost is small.