[Issue 962] New: extern C/Windows names D-mangled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 14 05:50:24 PST 2007


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

           Summary: extern C/Windows names D-mangled
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: chris at dprogramming.com


I'm sure this has been brought up several times, but in this case I think it
should be fixed:

template MyFuncs()
{
   export extern(Windows) void foo() { }
}

mixin MyFuncs;
// I expect foo to be mixed in and exported with a normal extern(Windows)
signature, yet it is mangled like a D name just because it's in a template.
// This is preventing me from writing some useful boilerplate code.


-- 



More information about the Digitalmars-d-bugs mailing list