Top "Namespaces" questions

A namespace is a container that provides context for identifiers, within which names are unique.

JAXB unmarshalling ignoring namespace turns element attributes into null

I'm trying to use JAXB to unmarshal an xml file into objects but have come across a few difficulties. The …

java namespaces jaxb attributes jdk1.5
Why "using namespace X;" is not allowed inside class/struct level?

class C { using namespace std; // error }; namespace N { using namespace std; // ok } int main () { using namespace std; // ok } Edit: Want …

c++ namespaces using language-lawyer
In C++, what is a "namespace alias"?

What is a "namespace alias" in C++? How is it used?

c++ namespaces
Namespace constant in C#

Is there any way to define a constant for an entire namespace, rather than just within a class? For example: …

c# namespaces constants
What are inline namespaces for?

C++11 allows inline namespaces, all members of which are also automatically in the enclosing namespace. I cannot think of any …

c++ namespaces c++11 inline-namespaces
Python: NameError: global name 'foobar' is not defined

I have written the following class: class myClass(object): def __init__(self): pass def foo(self, arg1, arg2): pp = foobar(…

python namespaces nameerror
Namespaces in C

Is there a way to (ab)use the C preprocessor to emulate namespaces in C? I'm thinking something along these …

c++ c namespaces c-preprocessor
Kubernetes - sharing secret across namespaces

Is there a way to share secrets across namespaces in Kubernetes? My use case is: I have the same private …

namespaces kubernetes
PHP - get all class names inside a particular namespace

I want to get all classes inside a namespace. I have something like this: #File: MyClass1.php namespace MyNamespace; class …

php namespaces
Correct way to define C++ namespace methods in .cpp file

Probably a duplicate, but not an easy one to search for... Given a header like: namespace ns1 { class MyClass { void …

c++ coding-style namespaces