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,ea41e1f99bbb6556,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-04 09:50:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0900.news.uu.net!news0-alterdial.eu.uu.net!not-for-mail From: Juanma Barranquero Newsgroups: comp.lang.ada Subject: GNAT 3.14p: Is GNAT.Sockets an internal unit? Date: Mon, 04 Feb 2002 18:50:34 +0100 Message-ID: <64it5uk1o286o33mfvavged1g03aj9to4n@4ax.com> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.22.27.143 X-Trace: news0-alterdial.eu.uu.net 1012845034 155 62.22.27.143 Xref: archiver1.google.com comp.lang.ada:19595 Date: 2002-02-04T18:50:34+01:00 List-Id: >From GNAT 3.14p User's Guide > `-gnatwi (activate warnings on implementation units).' > This switch activates warnings for a `with' of an internal > GNAT implementation unit, defined as any unit from the `Ada', > `Interfaces', `GNAT', or `System' hierarchies that is not > documented in either the Ada Reference Manual or the GNAT > Programmer's Reference Manual. Such units are intended only > for internal implementation purposes and should not be > `with''ed by user programs. The default is that such warnings > are generated This warning can also be turned on using > `-gnatwa'. >From GNAT 3.14p Reference Manual: >GNAT.Sockets (g-socket.ads) >=========================== > >A high level and portable interface to develop sockets based >applications. This package is based on the sockets thin binding found >in GNAT.Sockets.Thin. Currently GNAT.Sockets is implemented on all >native GNAT ports except for OpenVMS. It is not implemented for cross >ports, and in particular is not implemented for VxWorks or LynxOS. On Windows XP, with GNAT 3.14p: -------------------- ----- test.adb ----- -------------------- with GNAT.Sockets; procedure Test is begin null; end Test; -------------------- C:\test> gnatmake test gcc -c test.adb test.adb:1:10: warning: "Gnat.Sockets" is an internal GNAT unit test.adb:1:10: warning: use of this unit is non-portable and version-dependent gnatbind -x test.ali gnatlink test.ali GNAT.Sockets *is* documented in the GNAT Programmer's Reference Manual. Shouldn't the warning be skipped? Or am I missing something? /L/e/k/t/u