From: myknees AT aol DOT com (Myknees) Newsgroups: comp.os.msdos.djgpp Subject: Re: Namespaces Lines: 30 Message-ID: <1998082821540501.RAA28333@ladder03.news.aol.com> NNTP-Posting-Host: ladder03.news.aol.com Date: 28 Aug 1998 21:54:05 GMT References: <35E6BEAB DOT 564DDB62 AT unb DOT ca> Organization: AOL http://www.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In a message dated 98-08-28 12:04:41 EDT, you write: > Subj: Re: Namespaces > Date: 98-08-28 12:04:41 EDT > From: s257m AT unb DOT ca (Endlisnis) > To: myknees AT AOL DOT COM (Myknees) > > 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. See you! --Ed (Myknees)