August 17, 2013 [Issue 10837] New: Extern as in-place linkage modifier | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10837 Summary: Extern as in-place linkage modifier Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: weltensturm@gmail.com --- Comment #0 from Robert Luger <weltensturm@gmail.com> 2013-08-17 07:52:51 PDT --- It's not possible to directly take an extern(C) function pointer as argument: void receiveFunc(extern(C) void function() f); // error extern(C) alias void function() Func; void receiveFunc(Func f); // works In my particular case it is problematic when I use std.traits.fullyQualifiedName (for later use in a mixin) on a function type which takes a C function, because it returns a string similar to the first example. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 17, 2013 [Issue 10837] Extern as in-place linkage modifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Luger | http://d.puremagic.com/issues/show_bug.cgi?id=10837 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |DUPLICATE --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-17 07:54:52 PDT --- *** This issue has been marked as a duplicate of issue 6754 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation