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:aed:2150:: with SMTP id 74mr14049478qtc.323.1579392729965; Sat, 18 Jan 2020 16:12:09 -0800 (PST) X-Received: by 2002:a05:6830:194:: with SMTP id q20mr11613405ota.92.1579392729543; Sat, 18 Jan 2020 16:12:09 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no10937844qtd.0!news-out.google.com!w29ni1702qtc.0!nntp.google.com!g89no10937839qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 18 Jan 2020 16:12:09 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=47.136.24.151; posting-account=o_Y23woAAACPYGlDsFV1OivhygPNSoRn NNTP-Posting-Host: 47.136.24.151 References: <4b0649b3-aed2-44fd-822f-d6665b9352dd@googlegroups.com> <536e9961-f454-44d9-95a6-aecaaee1addf@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Creating several types from a base type and conversion From: Ken Roberts Injection-Date: Sun, 19 Jan 2020 00:12:09 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57889 Date: 2020-01-18T16:12:09-08:00 List-Id: On Saturday, January 18, 2020 at 3:38:27 PM UTC-8, Simon Wright wrote: > Ken Roberts writes: >=20 > > On Saturday, January 18, 2020 at 2:35:52 PM UTC-8, Simon Wright wrote: > >> Ken Roberts writes: > >>=20 > >> > On Saturday, January 18, 2020 at 7:10:00 AM UTC-8, Simon Wright wrot= e: > >> >> Ken Roberts writes: > >> >>=20 > >> >> > Don't know about the syntax errors - gnatmake seems to like it. > >> >>=20 > >> >> Then the code you're compiling isn't the code you're showing to us! > >> > > > > > > > > > Interesting. Might be the difference in compilers then - I'm using the > > ada compiler collection available in the Fedora 30 branch. >=20 > This is what you posted >=20 > > ken/ntds/usq20/playground $=C2=A0gnatmake core > > gcc -c core.ads > > ken/ntds/usq20/playground $=C2=A0ls -al > > drwxrwxr-x. 2 ken ken 4096 Jan 18 14:10 . > > drwxrwxr-x. 8 ken ken 4096 Jan 16 03:34 .. > > -rw-rw-r--. 1 ken ken 1201 Jan 16 03:49 core.ads <<<<<< 1201 bytes > > -rw-rw-r--. 1 ken ken 280 Jan 18 14:10 core.ali > > -rw-rw-r--. 1 ken ken 968 Jan 18 14:10 core.o > > ken/ntds/usq20/playground=20 >=20 > and this is what I got from copying & pasting the code you'd posted >=20 > lockheed:cla simon$ ls -l core.* > -rw-r--r-- 1 simon staff 3377 18 Jan 22:23 core.ads <<<<<< 3377 bytes >=20 > I can 100% assure you that the difference in results IS NOT caused by a > difference in compilers: it IS caused by the fact that the code you sent > us is not the same as the code you compiled. https://drive.google.com/file/d/1jZv-GcGL3PdqYqi60eIYZnRIndudZqic/view?usp= =3Dsharing Here's a google drive link to check out - no changes and no copy/paste