November 01, 2007Re: function pointers with different calling conventions
Posted in reply to Jarrett Billingsley
Reply to Jarrett, > "Lutger" <firstname.lastname@example.org> wrote in message > news:email@example.com... > >> Does anybody know the syntax to declare a function pointer with the >> windows calling convention? >> >> DMD suggests the type of such pointers is int(Windows *)() for >> example, but this does not work. >> > I use: > > extern(Windows) alias int function() WinIntFunc; > WinIntFunc f; > It probably works the same as Regan's way.. > not exactly the same (I think) as Regan's also effects the linkage of the variable.