Seo Forum

Coding & Programming => Programming Forum => Topic started by: chinmay.sahoo on 02-15-2016, 04:00:38

Title: What problem does the namespace feature solve?
Post by: chinmay.sahoo on 02-15-2016, 04:00:38
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library's external declarations with a unique namespace that eliminates the potential
for those collisions.

namespace [identifier] { namespace-body }

A namespace declaration identifies and assigns a name to a declarative region.The identifier in a namespace declaration must be unique in the declarative region in which it is used. The identifier is the name of the namespace and is used to reference its members.