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: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.Oh2LSLzxQ4+YU0Htrufc+A.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Creating several types from a base type and conversion Date: Sat, 18 Jan 2020 23:38:25 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <4b0649b3-aed2-44fd-822f-d6665b9352dd@googlegroups.com> <536e9961-f454-44d9-95a6-aecaaee1addf@googlegroups.com> NNTP-Posting-Host: Oh2LSLzxQ4+YU0Htrufc+A.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:kAik0SN9M7bz42V8xNRqv9hVnr4= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:57887 Date: 2020-01-18T23:38:25+00:00 List-Id: Ken Roberts writes: > On Saturday, January 18, 2020 at 2:35:52 PM UTC-8, Simon Wright wrote: >> Ken Roberts writes: >> >> > On Saturday, January 18, 2020 at 7:10:00 AM UTC-8, Simon Wright wrote: >> >> Ken Roberts writes: >> >> >> >> > Don't know about the syntax errors - gnatmake seems to like it. >> >> >> >> 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. This is what you posted > ken/ntds/usq20/playground $ gnatmake core > gcc -c core.ads > ken/ntds/usq20/playground $ ls -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 and this is what I got from copying & pasting the code you'd posted lockheed:cla simon$ ls -l core.* -rw-r--r-- 1 simon staff 3377 18 Jan 22:23 core.ads <<<<<< 3377 bytes 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.