https://issues.dlang.org/show_bug.cgi?id=13309
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #8 from Nick Treleaven <[email protected]> --- (In reply to Kenji Hara from comment #5) > No, it's valid in the grammar. ... > And then, the name fnNtQuerySystemInformation will alias a function type: > > extern(Windows) HRESULT(uint, void*, uint, uint*) nothrow So this was invalid. Also the new alias syntax allows aliasing a function type: // old alias extern(Windows) HRESULT fnNtQuerySystemInformation( uint SystemInformationClass, void* info, uint infoLength, uint* ReturnLength ) nothrow; // new alias fnNtQuerySystemInformation = extern(Windows) HRESULT(uint SystemInformationClass, void* info, uint infoLength, uint* ReturnLength) nothrow; --
