E
Evan
There's an explanation in this book of why
extern "C" <blah>;
is not necessarily the same as
extern "C" { <blah>; }
(For the curious, if <blah> on its own is a definition, the former is a
declaration and the latter is a definition. The reason for the former
is 'extern "C" <blah>' would then be a declaration, so sticking the
linkage in there shouldn't change it. At the same time, surrounding a
file with extern "C" shouldn't change its semantics besides linkage and
stuff like overloading.)
I want to cite that description in a paper, but I'm at home and didn't
bring my copy of TC++PL with me. Can someone who has it look up the
page number? It's *really* easy to find from looking up extern "C" in
the index. Make sure you give me the edition you're using.
Thanks,
Evan
extern "C" <blah>;
is not necessarily the same as
extern "C" { <blah>; }
(For the curious, if <blah> on its own is a definition, the former is a
declaration and the latter is a definition. The reason for the former
is 'extern "C" <blah>' would then be a declaration, so sticking the
linkage in there shouldn't change it. At the same time, surrounding a
file with extern "C" shouldn't change its semantics besides linkage and
stuff like overloading.)
I want to cite that description in a paper, but I'm at home and didn't
bring my copy of TC++PL with me. Can someone who has it look up the
page number? It's *really* easy to find from looking up extern "C" in
the index. Make sure you give me the edition you're using.
Thanks,
Evan