Member function pointers

Manu turkeyman at gmail.com
Mon Jun 10 07:04:54 PDT 2013


On 10 June 2013 23:49, David Nadlinger <code at klickverbot.at> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130611/4dfc1d38/attachment.html>


More information about the Digitalmars-d mailing list