Does D has any support for thunks?

Andre Pany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 25 07:15:38 PDT 2016


On Saturday, 25 June 2016 at 14:06:51 UTC, John wrote:
> On Saturday, 25 June 2016 at 13:44:48 UTC, Andre Pany wrote:
>> [...]
>
> This will only work on X86:
>
> version(X86)
> struct FunctionPtr(TDelegate) if (is(TDelegate == delegate)) {
>
> [...]

Thanks a lot John, that's fantastic.

Kind regards
André


More information about the Digitalmars-d-learn mailing list