Mail Archives: djgpp/1998/08/28/18:01:59
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)
- Raw text -