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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-16 06:04:01 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!peer01.cox.net!cox.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031008 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" References: <3FB1609E.D56E315C@fakeaddress.nil> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 16 Nov 2003 14:04:00 GMT NNTP-Posting-Host: 162.84.193.72 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1068991440 162.84.193.72 (Sun, 16 Nov 2003 09:04:00 EST) NNTP-Posting-Date: Sun, 16 Nov 2003 09:04:00 EST Xref: archiver1.google.com comp.lang.ada:2543 Date: 2003-11-16T14:04:00+00:00 List-Id: Frank J. Lhota wrote: > I've done that a lot in my C++ code. In the C++ community, the "using" > declaration is even more controversial than the "use" clause is in the Ada > community. I have programmed for groups where using "using" is prohibited > unless absolutely necessary. As far as I know, the general rule of thumb is never to put a "using" declaration in a header file, because then you are polluting the namespaces of everyone who includes the file. But it's fine to do it in an implementation file. I don't usually bother, though - I'm not offended by (short) qualifiers.