From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,34872f3f22b5b140 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-16 06:36:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!wn11feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Suggestion for gnatstub Date: Sat, 16 Nov 2002 09:36:05 -0500 Organization: MindSpring Enterprises Message-ID: References: <3dcb9e51$0$303$bed64819@news.gradwell.net> <3DCBC4C9.AD436CD9@earthlink.net> NNTP-Posting-Host: d1.56.be.cd X-Server-Date: 16 Nov 2002 14:36:09 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:30983 Date: 2002-11-16T14:36:09+00:00 List-Id: 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 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. >