namespace

This is a discussion on namespace within the C++ Programming forums, part of the General Programming Boards category; Does DJGPP support namespaces? It's one of the newer aspects in the C++ standards, and I'm not too sure. Also ...

  1. #1
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459

    namespace

    Does DJGPP support namespaces? It's one of the newer aspects in the C++ standards, and I'm not too sure. Also can I get some examples on their usage? Thank you very much.
    hasafraggin shizigishin oppashigger...

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    First I cant say for sure it does but if you can use iostream, fstream, cstdlib, cmath, ctime or any of those files without the .h then id assume that namespaces are supported since those are some of the standard files that use namespace std. Namespaces should be used to group relevent functions into a common place and also helps prevent global namespace pollution.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  3. #3
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    yes it does work. At least it did for me when I used DJGPP.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. namespace problem
    By DL1 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2008, 01:10 PM
  2. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 04:11 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  5. data validation & namespace
    By tiange in forum C++ Programming
    Replies: 4
    Last Post: 07-05-2005, 03:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21