www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/22:46:34

From: myknees AT aol DOT com (Myknees)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Namespaces
Lines: 18
Message-ID: <1998082802341501.WAA07269@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Date: 28 Aug 1998 02:34:15 GMT
References: <35eac763 DOT 48400759 AT news DOT Austria DOT EU DOT net>
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <35eac763 DOT 48400759 AT news DOT Austria DOT EU DOT net>, sparhawk AT eunet DOT at (Gerhard
Gruber) writes:

>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.

--Ed (Myknees)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019