?
=?ISO-8859-1?Q?Erik_Wikstr=F6m?=
I can't come up with anything that can be accomplished with private
member functions and variables that can't be done with normal global
functions and variables. In fact I find it a bit limiting since such
a private member function or variable can't be called from a scope
outside the class, which means that you can't reuse the function or
variable in some other context.
Yes, I see your point. But data encapsulation is generally accepted as a
Good Thing (TM), and private member functions are a part of that. It is
my understanding that the C++ committee likes to add things that changes
the way people think, and I can't see nested functions doing that.
But who knows, in ten years someone will post some question to a usenet
group and someone will answer "... yes, but it is generally accepted
that nested functions are a Good Thing (TM)...".