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:a05:6214:38c:: with SMTP id l12mr67112658qvy.224.1578036902294; Thu, 02 Jan 2020 23:35:02 -0800 (PST) X-Received: by 2002:a9d:3d0a:: with SMTP id a10mr95080035otc.327.1578036902063; Thu, 02 Jan 2020 23:35:02 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no7953578qtd.0!news-out.google.com!w29ni568qtc.0!nntp.google.com!g89no7953571qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 2 Jan 2020 23:35:01 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=46.9.10.14; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 46.9.10.14 References: <1d96e0e1-7700-4947-9fcb-051a1203c703@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8bc80421-29fb-4f19-baf0-b14680a99c32@googlegroups.com> Subject: Re: Is this a bug? From: reinert Injection-Date: Fri, 03 Jan 2020 07:35:02 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57786 Date: 2020-01-02T23:35:01-08:00 List-Id: torsdag 2. januar 2020 10.34.17 UTC+1 skrev Dmitry A. Kazakov f=C3=B8lgende= : > On 2019-12-31 22:50, Randy Brukardt wrote: >=20 > > The best possible fix here would be to find some alternative notation f= or > > record components so that there would be a work-around in case the prim= ary > > notation doesn't work. >=20 > A'Component (B) >=20 > B of A >=20 > etc for A.B. >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de But I kind of like the concept of "extending" the record as illustrated her= e: type rec1_t is tagged record a : Integer :=3D 2; b : integer :=3D 2; end record; function c(x: rec1_t) return Integer is (x.a + x.b); rec1 : rec1_t; And then rec1.c =3D 4 is true. But what is really the problem of prohibiting to include above: function a(x: rec1_t) return Integer is (5); =20 ? This is similar to that the following is not legal: type rec1_t is tagged record a : Integer :=3D 2; b : Integer :=3D 2; a : Integer :=3D 5; -- is not legal. end record; ? reinert