Wednesday, July 26, 2006

Scope of namespace

Consider this :-

namespace PPP
{
CMyclass {
....
};
int iPPP;

}
int CMytest::ExampleNameSpace( PPP:: CMyclass &oTest, int p)
{
return iPPP;

}


it takes iPPP from the namespace of the PPP , firstchecks in the scope of CMytest and then in the scope of the std <\b> and then in the scope of the function argument scope .
Popularly known as namelook up rule

No comments: