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-10 04:20:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.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: 10 Nov 2002 12:20:23 +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 1036930818 27393 62.49.19.209 (10 Nov 2002 12:20:18 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 10 Nov 2002 12:20:18 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:30681 Date: 2002-11-10T12:20:23+00:00 List-Id: Pascal Obry writes: > Robert A Duff writes: > > > Simon Wright writes: > > > > > I had thought about > > > > > > function F(X, Y: Integer) return GNAT.Socket_Type is > > > Dummy : GNAT.Socket_Type; > > > pragma Warnings (Off, Dummy); > > > begin > > > raise Program_Error; > > > return Dummy; > > > end F; > > > > Usually OK, but doesn't work for limited types. > > Not only limited types but with unconstraint types like String which is > very common ! I would hope it wouldn't work for limited types :-)