From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Bug in Ada (SuSe 10.2) ?
Date: Wed, 20 Feb 2008 18:31:38 -0600
Date: 2008-02-20T18:31:38-06:00 [thread overview]
Message-ID: <fpigq5$5me$1@jacob-sparre.dk> (raw)
In-Reply-To: 48277611-402f-4622-be05-6edddf6dd56a@o10g2000hsf.googlegroups.com
"Adam Beneschan" <adam@irvine.com> wrote in message
news:48277611-402f-4622-be05-6edddf6dd56a@o10g2000hsf.googlegroups.com...
> On Feb 20, 10:31 am, "Jeffrey R. Carter"
> <spam.jrcarter....@acm.nospam.org> wrote:
> > I never accepted that it was a valid reason for the defaults not to
> > be Ada. The simple explanation is that GNAT, by default, is not an Ada
> > compiler.
> > You need at a minimum -gnato and -fstack-check for it to be so.
>
> Well, if you're going to be pedantic, then even with those flags GNAT
> is not an Ada compiler, because I can give it Ada programs that it
> doesn't compile (not to mention non-Ada programs that it doesn't
> reject, and Ada programs that run incorrectly after GNAT compiles
> them). And the same is doubtless true of any other compiler. GNAT
> will not be an Ada compiler until they finally get the Last Bug out,
> which isn't going to happen because by the time they finally get Ada
> 2005 to be working 100% correctly, the Ada language will be up to Ada
> 2067 or so.
>
> So maybe it's ridiculously pedantic to claim it's not Ada for that
> reason---but probably no moreso than for your reason.
Well, maybe you are write pedantically, but I would counterclaim that there
is a big difference between a compiler that fails to compile Ada by an
oversight (that is a bug) and one that does so intentionally.
In any case, I agree with Jeff that this is a bad thing. Overflow checking
is a feature of Ada that sets it apart from other languages, and it is bad
for it not to be supported by default. It would be like a compiler skipping
range checking or variant discriminant checking by default "because they're
too expensive". The Ada language even provides a way to turn those things
off if they are too expensive -- that surely suggests that the default
should be that these checks are present.
The other obvious evidence that this is a bad thing is that OP's question:
which we see here several times a year. It would obviously be better if we
didn't have to deal with that (and remember that many people will not
actually write such a question, so there probably are many more that are
confused).
Of course, this is just griping about a particular implementation. It is
always important to remember that Ada /= GNAT.
Randy.
next prev parent reply other threads:[~2008-02-21 0:31 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 8:47 Bug in Ada (SuSe 10.2) ? Reinert Korsnes
2008-02-19 9:08 ` Niklas Holsti
2008-02-19 9:53 ` Reinert Korsnes
2008-02-19 11:21 ` Ludovic Brenta
2008-02-20 12:41 ` Reinert Korsnes
2008-02-20 16:50 ` Adam Beneschan
2008-02-20 18:31 ` Jeffrey R. Carter
2008-02-20 23:10 ` Adam Beneschan
2008-02-20 23:22 ` Adam Beneschan
2008-02-21 0:31 ` Randy Brukardt [this message]
2008-02-21 8:56 ` Jean-Pierre Rosen
2008-02-21 9:08 ` Alex R. Mosteo
2008-02-21 9:27 ` Ludovic Brenta
2008-02-21 9:46 ` billjones6789
2008-02-21 12:27 ` Access type (mis)use (Was: Bug in Ada (SuSe 10.2) ?) Jacob Sparre Andersen
2008-02-21 19:40 ` Bob Klungle
2008-02-21 21:25 ` Jeffrey R. Carter
2008-02-21 21:57 ` Vadim Godunko
2008-02-21 22:32 ` Bug in Ada (SuSe 10.2) ? Randy Brukardt
2008-02-22 16:10 ` billjones6789
2008-02-22 19:21 ` Georg Bauhaus
2008-02-22 21:29 ` Vadim Godunko
2008-02-22 21:39 ` Robert A Duff
2008-02-23 10:16 ` billjones6789
2008-02-22 19:52 ` Randy Brukardt
2008-02-23 10:36 ` billjones6789
2008-02-26 0:32 ` Randy Brukardt
2008-02-26 16:46 ` billjones6789
2008-02-26 20:53 ` Randy Brukardt
2008-02-27 1:05 ` Robert A Duff
2008-02-27 10:06 ` billjones6789
2008-02-27 17:49 ` Robert A Duff
2008-02-28 0:30 ` Randy Brukardt
2008-02-28 15:33 ` Robert A Duff
2008-03-06 17:46 ` Adam Beneschan
2008-02-21 0:31 ` Jeffrey R. Carter
2008-02-21 0:35 ` Jeffrey R. Carter
2008-03-06 11:55 ` Colin Paul Gloster
2008-02-21 0:55 ` tmoran
2008-02-21 8:08 ` billjones6789
2008-02-21 9:11 ` Alex R. Mosteo
2008-02-21 23:01 ` Randy Brukardt
2008-02-22 16:43 ` Adam Beneschan
2008-02-22 9:06 ` Stephen Leake
2008-02-22 5:40 ` Gautier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox