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 00:45:47 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!teaser.fr!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Suggestion for gnatstub
Date: 10 Nov 2002 09:42:04 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3dcb9e51$0$303$bed64819@news.gradwell.net>
<3DCBC4C9.AD436CD9@earthlink.net>
NNTP-Posting-Host: avelizy-103-1-7-168.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader10.wanadoo.fr 1036917947 24744 81.48.101.168 (10 Nov 2002
08:45:47 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 10 Nov 2002 08:45:47 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92
Xref: archiver1.google.com comp.lang.ada:30677
Date: 2002-11-10T08:45:47+00:00
List-Id:
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 !
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595