From: bstroustrup AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: Namespaces Date: Wed, 09 Sep 1998 11:13:28 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 48 Message-ID: <6t5nsn$piv$1@nnrp1.dejanews.com> References: <000101bdd371$223b03a0$384e08c3 AT arthur> <35F5C1BE DOT 436251A0 AT bellatlantic DOT net> NNTP-Posting-Host: 135.207.14.70 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <35F5C1BE DOT 436251A0 AT bellatlantic DOT net>, Donn Miller wrote: > > > 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 > > Actually, many (most) recently released compilers supports the "new stuff" such as namespaces and the STL (e.g. Borland, MS, G++, EGCS, EDG-based compilers). I describe Standard C++ rather than the most widely available subset, but I'm not that far ahead of what's shipping. - Bjarne Bjarne Stroustrup - http://www.research.att.com/~bs -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum