Reply-To: From: "Arthur" To: "DJGPP Mailing List" Subject: RE: Namespaces Date: Sat, 29 Aug 1998 18:19:09 +0100 Message-ID: <000101bdd371$223b03a0$384e08c3@arthur> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Importance: Normal In-Reply-To: <1998082821540501.RAA28333@ladder03.news.aol.com> Precedence: bulk > > Myknees wrote: > > > >What is that? I heard that term now several times and I don't have a = > > > >clue. :) > > > It's a new feature in C++ that lets you put all the names in a library in > > their > > > own little package, so that by using the libary you don't have to have all > > > of > > > those names conflicting with names in other libraries. > > > > > > e.g. The standard library functions would be in namespace std. It looks > > like > > > this: > > > mylibspace::print(); > > > > > > ...where mylibspace is a namespace. > > Isn't that just a 'class'? > > 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? James Arthur jaa AT arfa DOT clara DOT net ICQ#15054819