From: Donn Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: Namespaces Date: Tue, 08 Sep 1998 19:46:07 -0400 Organization: Bell Atlantic Internet Solutions Lines: 26 Message-ID: <35F5C1BE.436251A0@bellatlantic.net> References: <000101bdd371$223b03a0$384e08c3 AT arthur> NNTP-Posting-Host: client201-122-76.bellatlantic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Arthur wrote: > > You can think of a class as a struct where all the members are private by > > default. A namespace is not a data structure; it's a scope, so it's different. > > If DJGPP doesn't support namespaces, then doesn't that mean that GNU C++ doesn't > conform to C++ standards? > Actually it will be a good while until most compiler writers can fully implement namespaces. The standard is very new, and Stroustrup tried to be as current as possible by including them in his new book. His intent I think was to write a book that would be good 2-3 years into the future, and not necessarily to reflect the current state of C++. He also discusses a lot of other standard-library features such as sets, vectors, and lists which also may not be available for some time. I was disappointed that he spent some much time on the "new stuff" that hasn't even been implemented yet, but I can see why he included them. Donn