Re: When is the C++ transition needed?
Brian Carlson wrote:
>> You must not pass by reference with an extern "C" declaration, because C
>> doesn't support that.
Dan Jacobowitz wrote:
>Why not? An extern C definition doesn't mean that it needs to be
>usable from C. It just means to use the C calling convention.
Perhaps because there is no C calling convention for passing by reference?
How to pass arguments is part of the calling convention. :-P You can pass
C++-only objects, certainly, but you have to be able to pass them in a way
which is understood in the C calling convention.
Nathanael Nerode <email@example.com>
Make sure your vote will count.