Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6673

Re: Anonymous namespace

From ruben safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject Re: Anonymous namespace
Date 2011-06-13 05:02 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <it45ki$ioc$7@reader1.panix.com> (permalink)
References (1 earlier) <unnamed-namespace-20110603040622@ram.dialup.fu-berlin.de> <isce6i$keo$2@reader1.panix.com> <slrniv1bef.gtj.grahn+nntp@frailea.sa.invalid> <iss5it$fjr$2@reader1.panix.com> <slrniv4ogh.gtj.grahn+nntp@frailea.sa.invalid>

Show all headers | View raw


On Fri, 10 Jun 2011 18:27:29 +0000, Jorgen Grahn wrote:

> On Fri, 2011-06-10, Ruben Safir wrote:
>> On Thu, 09 Jun 2011 11:26:08 +0000, Jorgen Grahn wrote:
>>
>>
>>>>> namespace unique {} using namespace unique; namespace unique { ... }
>>>>
>>>> ugg - back to the namespace syntax chapter...
>>> 
>>> If you *do* have a book,
>>
>>
>> Jorgen, do you think I have any C++ references and do you think I read
>> them.
> 
> If you had mentioned that you've read book X but still don't understand
> anonymous namespace because of Y, then I wouldn't have complained.
> 

I'm partly sympathetic to that point.  Your obviously not sitting in my 
chair and you don't really know what I have and haven't read.  But I'd 
think that after all those previous posts, you'd have the gist that I'm 
pouring over several texts.

>> It's irrelevant since the namespace sections in Stroudtrup are nearly
>> incomprehensible and written more like a dissertation than a learning
>> tool,
> 
> I know that Stroustrup's book can be unhelpful at times, but as I recall
> it, it was pretty clear about anonymous namespaces. I learned how to use
> them (and where and why) based on only that book.
>

I found the entire section, and other other section, and the other 
section, to be largely incomprehensible and I was going to get back to 
rereading them after i gained more fluency with the language.  I want to 
better learn iostreams etc first, then I'll swing back and look at 
namespaces again.  I'm not a single pass compiler :)

Lippman's explanation of namespaces was just outright bizarre and 
frustrating.

Trying to solve the problem of namespace polution by adding a 100,000 
extra keystroke, to me is pointless...but that is another issue.  I have 
to deal with what C++ is, not what I want it to be.

(at least it is not tcl)

Ruben
 
> /Jorgen

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Anonymous namespace Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-09 11:26 +0000
  Re: Anonymous namespace Ruben Safir <ruben@mrbrklyn.com> - 2011-06-10 04:12 +0000
    Re: Anonymous namespace Michael Doubez <michael.doubez@free.fr> - 2011-06-10 01:49 -0700
      Re: Anonymous namespace mrbrklyn <ceo.brooklyn@gmail.com> - 2011-06-10 10:34 -0700
      Re: Anonymous namespace mrbrklyn <ceo.brooklyn@gmail.com> - 2011-06-10 10:45 -0700
        Re: Anonymous namespace Michael Doubez <michael.doubez@free.fr> - 2011-06-12 00:01 -0700
          Re: Anonymous namespace ruben safir <ruben@mrbrklyn.com> - 2011-06-13 04:08 +0000
            Re: Anonymous namespace Michael Doubez <michael.doubez@free.fr> - 2011-06-13 08:43 -0700
    Re: Anonymous namespace Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-10 18:27 +0000
      Re: Anonymous namespace ruben safir <ruben@mrbrklyn.com> - 2011-06-13 05:02 +0000
        Re: Anonymous namespace Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-13 07:58 +0000
          Re: "namespaces were a mistake" (was: Anonymous namespace) Öö Tiib <ootiib@hot.ee> - 2011-06-13 09:56 -0700
          Re: "namespaces were a mistake" (was: Anonymous namespace) Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-13 19:52 +0000
            Re: "namespaces were a mistake" Miles Bader <miles@gnu.org> - 2011-06-14 13:43 +0900
              Re: "namespaces were a mistake" Miles Bader <miles@gnu.org> - 2011-06-15 07:15 +0900
                Re: "namespaces were a mistake" Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-15 12:01 +0000
            Re: "namespaces were a mistake" (was: Anonymous namespace) drew@furrfu.invalid (Drew Lawson) - 2011-06-14 12:24 +0000
              Re: "namespaces were a mistake" (was: Anonymous namespace) gwowen <gwowen@gmail.com> - 2011-06-14 06:00 -0700
                Re: "namespaces were a mistake" (was: Anonymous namespace) Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-14 14:10 -0700
              Re: "namespaces were a mistake" Miles Bader <miles@gnu.org> - 2011-06-15 06:30 +0900

csiph-web