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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-09 06:15:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Suggestion for gnatstub Date: 09 Nov 2002 14:15:36 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <3dcb9e51$0$303$bed64819@news.gradwell.net> <3DCBC4C9.AD436CD9@earthlink.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1036851331 7202 62.49.19.209 (9 Nov 2002 14:15:31 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 9 Nov 2002 14:15:31 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:30640 Date: 2002-11-09T14:15:36+00:00 List-Id: "Marin David Condic" writes: > Actually, I dislike gnatstub because it doesn't generate null > functions. I often want the stubs to be executable so I can test > higher level code and do iterative builds. ("O.K. I got *this* > function working right, now lets go build the next one..." Saves on > having to build test harnesses.) I'd imagine it would be fairly > straightforward to include an option that let the user select the > desired behavior - raise exceptions or generate working code. My ColdFrame framework generator goes to a lot of trouble to generate compilable subprograms that raise Program_Error if executed. I think there is one case where this doesn't work (functions returning a value of an imported type, eg GNAT.Socket_Type, that turns out to be private).