Linked by Eugenia Loli-Queru on Mon 6th Mar 2006 02:02 UTC
Thread beginning with comment 101824
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.





Member since:
2006-02-10
I try to avoid the using statement too so I can see all the time where a class comes from. But I wasn't using it for classes within the same namespace, of course. Still, I didn't like it much.
I know I don't have to indent everything, but the code formatter to. I guess I just don't like C++' syntax. The following would have been a nicer way to write:
class ns::Classname
{
};
Forward decarations to different namespaces are ugly too.
namespace nsa
{
....class ClassA;
}
namespace nsb
{
....class ClassB
....{
........nsa::ClassA* m_a;
....}
}
alternatively. better or worse?
namespace nsb
{
class ClassB
{
....nsa::ClassA* m_a;
}
}
It seems like I am a C++ hater but maybe I am back to namespaces again next week. By the way, the D language has a much nicer syntax than C++, but I have not tried it yet.