[Issue 1731] forward reference of function type alias resets calling convention

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 6 04:05:39 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=1731





------- Comment #1 from maxmo at pochta.ru  2009-04-06 06:05 -------
For dmd 2.023

alias uint DWORD;
MY_API_FUNCTION lpStartAddress;  // <-- comment this line to remove error
extern (Windows) alias DWORD function(void*) MY_API_FUNCTION;
static assert(MY_API_FUNCTION.stringof == "uintWindows  function(void*)",
MY_API_FUNCTION.stringof);


-- 



More information about the Digitalmars-d-bugs mailing list