P
Phlip
Language Lawyers:
Compare this:
extern "C" int Maine()
{
...
bool runTests();
return !runTests();
}
to this:
bool runTests();
extern "C" int Maine()
{
...
return !runTests();
}
The first does not link because the true runTests() is not extern "C". But I
didn't specify extern "C" directly on bool runTests().
Should the extern "C" have been "inherited" from the enclosing function like
that?
Just curious. (But always glad to find yet another bug in Visual C++ 6!)
Compare this:
extern "C" int Maine()
{
...
bool runTests();
return !runTests();
}
to this:
bool runTests();
extern "C" int Maine()
{
...
return !runTests();
}
The first does not link because the true runTests() is not extern "C". But I
didn't specify extern "C" directly on bool runTests().
Should the extern "C" have been "inherited" from the enclosing function like
that?
Just curious. (But always glad to find yet another bug in Visual C++ 6!)