comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: Task discriminants
Date: Tue, 25 May 2004 05:48:28 +0000 (UTC)
Date: 2004-05-25T05:48:28+00:00	[thread overview]
Message-ID: <c8umnc$lqt$1@sparta.btinternet.com> (raw)
In-Reply-To: vpGdnbX1YZHq9y_d4p2dnA@megapath.net

"Randy Brukardt" <randy@rrsoftware.com> wrote in message
news:vpGdnbX1YZHq9y_d4p2dnA@megapath.net...
> > Is there any compiler out that that does not do the 'right thing' - I've
> certainly never come across one.
>
> How would you know? Depending on side-effects in elaboration order is
> dubious in any case. The only place I've ever seen discriminants
initialized
> by functions with side-effects is in ACATS tests - it's certainly not a
> common style. And, the issue is one of optimization - an implementation
> could implement elaboration in unrolled loops or the like in some cases.

Spotting when it does do the 'right' thing would be easy during any half
decent testing as the whole point of this is to ensure that the array index
into the task is the same as value as the discriminant.

As to whether the style is common, well, YMMV. :-)

> Just because it works in some particular case doesn't mean that it will
work
> in all cases.

Absolutely! But that was kind of my question - is there any implementation
that won't give the desired result in this case? Not to my knowledge but
then
I don't have access to every implementation...

-- Martin





  reply	other threads:[~2004-05-25  5:48 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 14:47 Task discriminants Dave Levy
2004-05-20 17:17 ` David C. Hoos
2004-05-20 18:37   ` Martin Dowie
2004-05-21  0:39     ` Georg Bauhaus
2004-05-21  1:04       ` Jeffrey Carter
2004-05-21  9:43     ` Phil Slater
2004-05-21 12:43       ` Martin Dowie
2004-05-21 19:42         ` Randy Brukardt
2004-05-21 22:05           ` Martin Dowie
     [not found]           ` <c8luk4$29b$1@hercules.btinternet.com>
2004-05-21 23:16             ` Randy Brukardt
2004-05-22  7:55               ` Martin Dowie
2004-05-24 21:34                 ` Randy Brukardt
2004-05-25  5:48                   ` Martin Dowie [this message]
2004-05-25 20:25                     ` Randy Brukardt
2004-05-25 22:40                       ` Martin Dowie
2004-05-20 17:30 ` Martin Krischik
2004-05-21  7:57   ` Dmitry A. Kazakov
2004-06-04 12:59     ` Andersen Jacob Sparre
2004-05-21 16:46   ` Robert I. Eachus
2004-05-22  7:54     ` Martin Dowie
2004-05-22 16:18     ` Pascal Obry
2004-05-24 21:36       ` Randy Brukardt
2004-05-25 21:22       ` Robert I. Eachus
2004-06-04 23:26 ` Nick Roberts
2004-06-07 22:12   ` Karen
replies disabled

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