Namespaces and Sub-Namespaces and the libraries they reference in C?

Your code above is exactly equivalent to: namespace. Somesubnamespace { } If you write it your way, or if you write it this way, accessing somesubnamespace is done exactly the same way in your code Namespaces are essentially just labels to organize your code. Depending on what your code is accessing will dictate what references you need - but the answer to your question is "no", the references for namespace will not necessarily be required namespace.

Somesubnamespace is an independent namespace in that regard.

Your code above is exactly equivalent to: namespace. Somesubnamespace { } If you write it your way, or if you write it this way, accessing somesubnamespace is done exactly the same way in your code. Namespaces are essentially just labels to organize your code.

Depending on what your code is accessing will dictate what references you need - but the answer to your question is "no", the references for namespace will not necessarily be required. Namespace. Somesubnamespace is an independent namespace in that regard.

You only need to add references to the DLLs that your code actually uses (directly or indirectly). Therefore, if library X has two classes that reference library A and B respectively, and you only use the class that references library A, you do not need library B at all. Namespaces are organizational concepts and have nothing to do with it.

If you add references to the DLLs, they will be copied. Since you must add the reference in order to use them, both will always be copied.

Wrong. You don't need to add a reference to an indirect dependency if you never use it. – SLaks?

Jun 9 '10 at 20:16 @Slaks - my understanding is that he is asking if using namespaces affects what DLLs are copied to the output directory. – Oded Jun 9 '10 at 20:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions