Victor Bazarov <v.********@comAcast.net> writes:
chessc4c6 wrote: Yes it could be, but I'm trying to explain how they are different in
that sense and do not know myself.
In the sense of case sensitivity they are not different. Context
sensitivity WRT C or C++ is something I've never heard of. Sorry.
huh?
int count= 0;
void foo()
{
++count; //in this context, the global count is incremented.
}
void bar()
{
static int count= 0;
++count; //in this context, the static count local to the function
//bar is incremented.
}
namespace baz
{
int count= 0;
void qux()
{
++count; //in this context, the count inside of namespace baz is incremented.
}
}
Above, the expression '++count' appears 3 times, each time in a
different context. Each time, because of differing context, an
otherwise textually identical expression has different
behavior. (And in other contexts, 'count' could refer to a
template ...)
C++ is filled with context sensitivity. In fact, it has few features
which are not in someway context sensitive.
The real problem with the OP's question is the enourmous number of
ways in which both C and C++ are context sensitive.