https://d.puremagic.com/issues/show_bug.cgi?id=12055

           Summary: Error: basic type expected, not extern when using
                    'alias = function'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Iain Buclaw <[email protected]> 2014-02-01 05:38:46 PST ---
In D, you can now replace the following:

alias int _UnWind_Sword;
=>
alias _UnWind_Sword = int;


However, this doesn't seem to work with alias function.

// OK
alias extern(C) void function(_Unwind_Reason_Code, _Unwind_Exception *)
     _Unwind_Exception_Cleanup_Fn;

// Error
alias _Unwind_Exception_Cleanup_Fn
  = extern(C) void function(_Unwind_Reason_Code, _Unwind_Exception *);


I would expect this to work in the same way as the first example does.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to