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


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@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: -------

Reply via email to