comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: Suggestion for gnatstub
Date: Sat, 16 Nov 2002 09:36:05 -0500
Date: 2002-11-16T14:36:09+00:00	[thread overview]
Message-ID: <ar5l4p$shr$1@slb4.atl.mindspring.net> (raw)
In-Reply-To: AS9B9.2090$c6.2552@bos-service2.ext.raytheon.com

There is yet another good idea for a stub generation option. Gnatstub might
be made to optionally output A) nulled out procedures & functions that
execute with minimally impacting results or B) Exceptions so that calling
them results in a runtime error, yet they remain compilable/linkable or C)
One or more types of Text_IO statements to indicate that the subprogram got
executed and what (if any) are the values of its parameters.

It might generate all three in the output and comment out the ones that were
not selected. I wouldn't worry too much about it being able to handle 100%
of the cases because its just a development aid that ultimately has to be
replaced by hand coded stuff anyway. A few oddball cases where it generates
something unusable without mods is probably fine.

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jast.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "I'd trade it all for just a little more"
        --  Charles Montgomery Burns, [4F10]
======================================================================

Wes Groleau <wesgroleau@despammed.com> wrote in message
news:AS9B9.2090$c6.2552@bos-service2.ext.raytheon.com...
>
> Suppose you have the spec for a subprogram.
>
> You could have an ASIS routine that looks at the spec,
> and generates a stub that prints out something like
>
>     Executing stub for function ... ( ... ) return ...
>        with parameters: param1 => ......
>
> Stephen Leake's Auto_Text_IO can do 90% of this already.
>





  parent reply	other threads:[~2002-11-16 14:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08 11:14 Suggestion for gnatstub Victor Porton
2002-11-08 12:56 ` Marc A. Criley
2002-11-08 13:23   ` Marin David Condic
2002-11-08 21:09     ` chris.danx
2002-11-15 17:08       ` Wes Groleau
2002-11-15 17:35         ` Stephen Leake
2002-11-16 14:36         ` Marin David Condic [this message]
2002-11-09 14:15     ` Simon Wright
2002-11-09 14:50       ` Marin David Condic
2002-11-09 20:05         ` Simon Wright
2002-11-10 15:58           ` Marin David Condic
2002-11-10 20:31             ` Robert A Duff
2002-11-11 13:46               ` Marin David Condic
2002-11-11 15:31                 ` Robert A Duff
2002-11-11 20:32                   ` Randy Brukardt
2002-11-11  6:31             ` Simon Wright
2002-11-09 15:44       ` Robert A Duff
2002-11-09 20:08         ` Simon Wright
2002-11-09 21:56           ` Robert A Duff
2002-11-10  8:42             ` Pascal Obry
2002-11-10 12:20               ` Simon Wright
2002-11-10 16:04               ` Marin David Condic
2002-11-14 20:10               ` Robert I. Eachus
replies disabled

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