| delorie.com/archives/browse.cgi | search |
| From: | Endlisnis <s257m AT unb DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Namespaces |
| Date: | Sat, 29 Aug 1998 15:20:33 -0300 |
| Organization: | NBTel Internet |
| Lines: | 14 |
| Message-ID: | <35E84671.269AB689@unb.ca> |
| References: | <35E6BEAB DOT 564DDB62 AT unb DOT ca> <1998082821540501 DOT RAA28333 AT ladder03 DOT news DOT aol DOT com> |
| NNTP-Posting-Host: | fctnts12c03.nbnet.nb.ca |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Myknees wrote:
> > > mylibspace::print();
> > 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.
But, can't you think of a name-space with only one instance? In a class, the
'scope' of something is controlable.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |