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-Thread: a07f3367d7,3398541ec18f6aa6 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.arglkargh.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Taking another spanking. Date: Mon, 8 Jun 2009 17:40:59 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <6f8fcf5b-09d7-40b6-9ac3-ed7e9f228b89@t21g2000yqi.googlegroups.com> <4a2a6ef5$0$30223$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1244500888 3716 69.95.181.76 (8 Jun 2009 22:41:28 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 8 Jun 2009 22:41:28 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:6375 Date: 2009-06-08T17:40:59-05:00 List-Id: "Georg Bauhaus" wrote in message news:4a2a6ef5$0$30223$9b4e6d93@newsspool1.arcor-online.net... ... >> In this case, I expand that to: Why not use GNAT package >> GNAT.Sockets.Thin >> instead of re-creating a few "pragma import" or re-creating the Thin >> package. > > GNAT.Sockets is vendor specific, sockets aren't as far as Ada goes. > GNAT.Sockets.Thin is not only vendor specific, the vendor says you > should not use it. Packages like GNAT.Sockets.Thin are supposed to be private packages; then users *couldn't* use it (it would be illegal to reference in a with clause). Indeed, the reason that "private with" was added in Ada 2005 was to make that more possible. It's always better to use the language facilities to prevent misuse rather than trust users to read and follow the documentation. There's always someone who won't follow the written directions! (That's why almost all of the Claw implementation articfacts are hidden in private parts and private packages.) Randy.