[Issue 13309] DMD accepts yet another invalid alias declaration

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 18 17:56:13 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13309

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #3 from hsteoh at quickfur.ath.cx ---
This looks like the old alias syntax `alias originalSymbol newSymbol;`. For
functions, it appears to be following C/C++'s totally counterintuitive pattern
of function pointer declaration `returnType (*ptrName)(... /*arguments*/)`. In
this case, it appears to be aliasing a function that takes (uint, void*, uint,
uint*) arguments and returns HRESULT to the name fnNtQuerySystemInformation.

--


More information about the Digitalmars-d-bugs mailing list