namespace

This is a discussion on namespace within the C++ Programming forums, part of the General Programming Boards category; >> If you use them correctly, the hypothetical problem you're talking about simply doesn't exist. But if you use them ...

  1. #16
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    >> If you use them correctly, the hypothetical problem you're talking about simply doesn't exist.
    But if you use them correctly and somebody else uses them incorrectly, the problem resurfaces.

  2. #17
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by siavoshkc
    We import namespace into scope by "using" keyword. Is it possible to kick it out of scope?
    http://groups.google.com/group/comp....368ab790df5336
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #18
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by Daved
    But if you use them correctly and somebody else uses them incorrectly, the problem resurfaces.
    But then it's not your problem, is it?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #19
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    It isn't your fault, but can most definitely be your problem. If you use code from libraries that do this, then your code can have issues and you are the one who has to deal with it.

  5. #20
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Now the discussion is out of scope.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  6. #21
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by Daved
    It isn't your fault, but can most definitely be your problem. If you use code from libraries that do this, then your code can have issues and you are the one who has to deal with it.
    Don't use bad libraries, then ...

    (Yeah, I know. Company policy, blablabla. Still ... I think a using declaration/statement in a header is such bad code practice that it should be possible to convince your dev team and managers not to use the library.)
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #22
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    And if your manager wrote the library?

  8. #23
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,438
    Oh man! I so much know what that means!
    Not with C++ where I'm just a newbie. But I also had to endure that pain. And god forbid me of ever have said anything against his code.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #24
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by Daved
    And if your manager wrote the library?
    Quit?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #25
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    Quote Originally Posted by Daved
    And if your manager wrote the library?
    Tell us where you work so we don't buy your products?
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  11. #26
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Of course this is all purely hypothetical.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

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

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