[Issue 12055] New: Error: basic type expected, not extern when using 'alias = function'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 1 05:38:47 PST 2014
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: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list