comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Working with incompetent adaists / unsafe typing war story
Date: Fri, 17 Feb 2006 18:55:49 +0000
Date: 2006-02-17T18:55:49+00:00	[thread overview]
Message-ID: <m2zmkpak7e.fsf@grendel.local> (raw)
In-Reply-To: hj8Jf.30641$F_3.2253@newssvr29.news.prodigy.net

<adaworks@sbcglobal.net> writes:

> At one point the person doing the demonstration said something such
> as, "Well let's get rid of these limited private types since they
> cannot be used for anything useful."  He then continued with his
> demonstration of the tool.

On my project, we have been using a code generator whose runtime makes
use of limited private abstract tagged types[1] where appropriate, and
doing unit tests with AUnit. AUnit ends up with a lot of unit test
code (seems to be about three times the operational code), so there's
an interest in finding a more cost-effective tool (I rather think that
what we want is a more cost-effective way of testing the code, which
is not quite the same thing, but that's another story).

At least one of the tools we looked at seemed to be incapable of
dealing with limited and/or indefinite types. I only got called in as
the eval was winding down, so I don't know the full story, but at
least one possibility is that the market for fancy test support
environments is one where limited and/or indefinite types are banned
anyway, for safety-related reasons perhaps, so it's not a problem. But
_I_ have a problem with an Ada test tool that can only handle a subset
of Ada, and I'm reluctant to modify the code generator to produce Ada
I'd be ashamed to write myself.

I _have_ been modifying the code generator to provide better support
for (AUnit-style) testing; for example, it can generate stub versions
of packages where you can store the values of in parameters, specify
the values returned via out parameters/function returns, and cause
exceptions to happen, all with indefinite values (but not limited);
implemented using streams. All easy enough if you're generating the
code in the first place, probably more work with ASIS.

[1] I think I got the order wrong there!



  parent reply	other threads:[~2006-02-17 18:55 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-16  2:15 Working with incompetent adaists / unsafe typing war story Anonymous Coward
2006-02-16  8:32 ` Jean-Pierre Rosen
2006-02-16 16:10   ` Peter C. Chapin
2006-02-17  9:27   ` Jerome Hugues
2006-02-17  9:48     ` Stephen Leake
2006-02-16 10:20 ` stephe_on_the_web
2006-02-17  4:19   ` Anonymous Coward
2006-02-17  5:25     ` Jeffrey R. Carter
2006-02-19  3:58     ` adaworks
2006-02-19 15:28       ` Stephen Leake
2006-02-16 20:17 ` Ludovic Brenta
2006-02-17  4:25   ` Anonymous Coward
2006-02-17 23:09     ` Ludovic Brenta
2006-02-16 23:57 ` adaworks
     [not found]   ` <7glav1paqvs5oco9nn9s5gknlimfu8aglg@4ax.com>
2006-02-17 13:39     ` Marc A. Criley
2006-02-17 18:55   ` Simon Wright [this message]
2006-02-17 20:43     ` Pascal Obry
2006-02-17 21:02     ` Stefan Lucks
2006-02-17 21:04       ` Pascal Obry
2006-02-18  9:58       ` Simon Wright
2006-02-17  1:57 ` Brian May
2006-02-17  5:29   ` Jeffrey R. Carter
2006-02-17 12:43     ` Simon Clubley
2006-02-17 19:18       ` Jeffrey R. Carter
2006-02-20  4:44   ` Anonymous Coward
2006-02-20  7:42     ` Brian May
replies disabled

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