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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 15 Nov 2005 06:43:31 -0600 Date: Tue, 15 Nov 2005 07:43:39 -0500 From: Jeff Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ADA compilers can reject types arbitrarily? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <7IOdnW_USNFuSuTeRVn-rQ@comcast.com> NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-JAGLgdvLlP9Q77lujOpSuwzGltKO8fkjeNupnfGkjB3IQJS8CtiHzAVu/MTDRr21qoDw9tp9XjssyDB!juu0hsPnW2oFENREjwLT6GhBMsXS9Km8nAIXnpHNXaczT8enCfTlinsGgv1hl4mZKd0OYbaTvQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6393 Date: 2005-11-15T07:43:39-05:00 List-Id: Anonymous Coward wrote: > In article , > > Amazing. So an ADA compiler can even reject an operational spec, and > still be considered an ADA compiler. ie. an ADA compiler can reject: > > type my_record is record > my_integer : integer; > end record; > > I think that is gives way too much freedom to the compiler. > Technically any ADA compiler can reject my composit types, and I have > no expectation that my code will run. I'm blown away by this. Even > worse, the compiler doesn't have to reject the types at compile time > -- it can wait until run time to raise exceptions. What am I missing? You know...Sometimes we take the whole idea of the letter of the spec too far. I don't think there is anything that prevents a compiler from implementing multiplication with a loop doing repetative addition but I have also never seen a compiler that does it. While I have seen a vendor or two hang their lackluster performance on some corner case wording of the reference manual, at some point (especially in this post Ada mandate world) you have to expect market pressures will prevent compilers from doing things that are totally idiodic. There are places where perhaps the LRM could be made a little bit tigher but in general the freedom is there to allow support on strange computing architectures. It is a shame that we pay for this with ambiguity on all of the "real" computing architectures.....