[Issue 6754] extern() in a function signature

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6754

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P4

--


[Issue 6754] extern() in a function signature

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6754

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 6754] extern() in a function signature

2020-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6754

Basile-z  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com
   Hardware|Other   |All
 OS|Windows |All

--


[Issue 6754] extern() in a function signature

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6754



--- Comment #4 from bearophile_h...@eml.cc 2013-10-10 13:26:36 PDT ---
Another example:


alias extern(C) void function() TF1; // OK
alias TF2 = extern(C) void function(); // Error
void main() {}



test.d(2): Error: basic type expected, not extern
test.d(2): Error: semicolon expected to close alias declaration
test.d(2): Error: no identifier for declarator extern (C) void function()

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


[Issue 6754] extern() in a function signature

2013-08-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6754


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

   What|Removed |Added

 CC||weltenst...@gmail.com


--- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-08-17 
07:54:52 PDT ---
*** Issue 10837 has been marked as a duplicate of this issue. ***

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


[Issue 6754] extern() in a function signature

2012-12-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6754



--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-27 
16:15:04 PST ---
Someone mentioned in IRC they've already implemented this. To the person that
did: please provide a patch (or a pull) so we don't duplicate our efforts,
thanks.

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


[Issue 6754] extern() in a function signature

2012-10-16 Thread d-bugmail
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: ---