[Issue 6754] extern() in a function signature

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 11:20:44 PDT 2012


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-16 11:20:40 PDT ---
Since @safe is already allowed I don't see why extern() shouldn't be allowed:

void test(void function() @safe) { }  // compiles

There are workarounds e.g. using uniquely-named aliases or module-scope
extern(C): declaration, the latter is a bit odd since the attribute ends up
affecting parameters and not just declarations in module scope.

Walter can we get an OK to implement this enhancement? Allowing the enhancement
would be beneficial for binding with C:
extern(C) void test(extern(C) void function() callback);

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


More information about the Digitalmars-d-bugs mailing list