On 10 June 2013 23:49, David Nadlinger <[email protected]> wrote:

> On Monday, 10 June 2013 at 13:45:37 UTC, Manu wrote:
>
>> What's the calling convention for
>> 'void function()'? cdecl?
>>
>
> Walter's very own calling convention. It is supposed to match cdecl
> everywhere but x86, but has the argument order reversed. On x86, it's a
> custom one that's similar to stdcall in some ways.


Indeed. I presume 'extern(C) void function()' is cdecl though?
Likewise 'extern(C++) void function(T this)' would be 'thiscall', and 'void
function(T this)' would be whatever D's method calling convention happens
to be.

Reply via email to