www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24628] New: Display of linkage in the compiler versus docs

https://issues.dlang.org/show_bug.cgi?id=24628

          Issue ID: 24628
           Summary: Display of linkage in the compiler versus docs and
                    examples
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

In the vast majority of uses, linkage is expressed without a space: e.g.
`extern(C)` instead `extern (C)`, however, when DMD displays linkage, it
inserts this space.

```d
extern(C) void f() { }
pragma(msg, typeof(&f));
```

Prints:
```
extern (C) void function()
```

Expected:
```
extern(C) void function()
```

--
Jun 25