From: Adam Beneschan <adam@irvine.com>
Subject: Re: limited allocated classwide types
Date: Thu, 3 Nov 2011 17:30:42 -0700 (PDT)
Date: 2011-11-03T17:30:42-07:00 [thread overview]
Message-ID: <5477be67-824f-446f-92d6-2aad668deb64@u12g2000vbx.googlegroups.com> (raw)
In-Reply-To: e3ca4799-e6e1-42c3-a522-d04b8221979f@er6g2000vbb.googlegroups.com
On Nov 3, 4:35 pm, Simon Belmont <sbelmont...@gmail.com> wrote:
>
> More vexxing is that I can alter what happens in the presumably
> incorrect case simply by adding, removing, and reordering the
> functions in the spec (which smacks heavily of a mixed up vtable, to
> excuse the c++ terminology), which the second response more-or-less
> supports.
Although there's no official Ada terminology, I think, a paragraph in
the AARM calls it the "dispatch table". We Ada people tend to prefer
readable English over incomprehensible abbreviations.
> Though it is satisfying to hear that this is most likely a compiler
> error, and not poor programming skills on my part, I can't help but
> feel unnerved by this. I am only months into being an Ada programmer
> and not trying to anything that isn't well described and ostensibly
> supported, so it seems odd that such a basic test case would uncover
> and compiler bug. Moreover, one of the points of pride is that Ada
> compilers are heavily tested and verified for safety critical apps,
> which this seems to undercut. Not to sound snarky, but I personally
> have never found a bug in a GPL C compiler.
You haven't run into any number of bugs that get dismissed as
"Duplicate of Bug 323", I guess. Like http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12331
which is something I ran into some years ago.
> In either case, just to confirm, this is the "correct" way to code
> this?
I don't know if this is the best way without knowing more about what
your entire program. But I don't see anything wrong with it. It's
probably correct enough.
-- Adam
next prev parent reply other threads:[~2011-11-04 0:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-03 22:01 limited allocated classwide types Simon Belmont
2011-11-03 22:50 ` Adam Beneschan
2011-11-03 23:14 ` Simon Wright
2011-11-03 23:35 ` Simon Belmont
2011-11-04 0:30 ` Adam Beneschan [this message]
2011-11-04 0:51 ` Adam Beneschan
2011-11-04 7:40 ` Simon Wright
2011-11-04 8:42 ` Dmitry A. Kazakov
2011-11-04 9:18 ` Georg Bauhaus
2011-11-04 9:53 ` Brian Drummond
2011-11-04 16:39 ` Simon Wright
2011-11-04 18:47 ` Adam Beneschan
2011-11-04 20:03 ` Simon Wright
2011-11-08 4:25 ` Randy Brukardt
2011-11-08 12:10 ` Brian Drummond
2011-11-08 12:35 ` Simon Wright
2011-11-08 13:05 ` Dmitry A. Kazakov
2011-11-10 9:56 ` Álex R. Mosteo
2011-11-04 12:25 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox