comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Equivalent of dynamic_cast (downcast) for tagged types
Date: Fri, 28 Jan 2011 14:04:18 -0800 (PST)
Date: 2011-01-28T14:04:18-08:00	[thread overview]
Message-ID: <4155ecd0-182c-428c-94bc-2371ff6ce46f@l22g2000pre.googlegroups.com> (raw)
In-Reply-To: wccfwscex8a.fsf@shell01.TheWorld.com

On Jan 28, 6:47 pm, Robert A Duff <bobd...@shell01.TheWorld.com>
wrote:

> Sorry, but AdaCore does not take bug reports from comp.lang.ada.

I knew this will pop up. :-)

You see - if this happened to me, it might as well happen in the
future to anybody else, including their Most Valuable Customer (tm)
and that future might be next year or next week. Silently calling the
wrong operation is not something that I would like to see in a
critical system and I can imagine that the Most Valuable Customer (tm)
can get really pissed if this happens. It is therefore in the best
interest of AdaCore to have the fix ready *before* that time, so they
can prove their excellent support by reacting instantly. Seems like a
good strategy to me.

I don't expect AdaCore to ship updated GPL version out of their
calendar just because I wrote some rant on comp.lang.ada. Far from it
- I anyway appreciate that I get something for free as in free beer.
But if they are proactive in their care about their own business, they
should do the homework before this problem hits them the hard way.

In other words: I, as a person, can have very low priority for them.
But the BUG in their product must have a very high priority, no matter
who is reporting it.

Last but not least: the only reason why I don't submit a separate
bugzilla report for this is that I do not have the minimal
reproducible test case. But I'm willing to provide all necessary
information and assistance on request.

> There seems to be a fairly easy workaround in your case:
> Don't declare an Adjust procedure on limited controlled
> types.

I didn't - and that's why I got Program_Error from the Adjust
operation that is in s_finroo.adb:45.
I have declared Adjust for my own type only as part of my
investigations and in fact this allowed me to gather some interesting
observations that I described already.

BTW - I *never* declare Adjust in normal code, because I never use non-
limited Controlled types.

--
Maciej Sobczak * http://www.inspirel.com



  reply	other threads:[~2011-01-28 22:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 15:46 Equivalent of dynamic_cast (downcast) for tagged types Maciej Sobczak
2011-01-27 16:18 ` Dmitry A. Kazakov
2011-01-27 17:10   ` J-P. Rosen
2011-01-27 17:35     ` Dmitry A. Kazakov
2011-01-27 22:49     ` Maciej Sobczak
2011-01-27 17:50   ` Georg Bauhaus
2011-01-27 22:35   ` Maciej Sobczak
2011-01-28  5:07     ` Yannick Duchêne (Hibou57)
2011-01-28  9:16     ` Dmitry A. Kazakov
2011-01-28 13:11       ` AdaMagica
2011-01-28 14:13         ` Dmitry A. Kazakov
2011-01-28 23:51           ` Randy Brukardt
2011-01-29  0:55             ` Adam Beneschan
2011-01-28 16:44       ` Adam Beneschan
2011-01-28 17:21         ` Dmitry A. Kazakov
2011-01-29  0:12           ` Randy Brukardt
2011-01-29  8:47             ` Dmitry A. Kazakov
2011-01-28 17:33         ` Adam Beneschan
2011-01-28 15:13     ` Maciej Sobczak
2011-01-28 17:47       ` Robert A Duff
2011-01-28 22:04         ` Maciej Sobczak [this message]
2011-01-30 20:22           ` Stephen Leake
2011-01-31  9:04             ` AdaCore, user community and communication channels Maciej Sobczak
2011-01-31 10:42               ` Georg Bauhaus
2011-01-27 19:33 ` Equivalent of dynamic_cast (downcast) for tagged types Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox