Skip to content

Display of linkage in the compiler versus docs and examples #5508

Open
@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Bolpat reported this on 2024-06-25T15:27:34Z

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

CC List

  • Nick Treleaven
  • Bolpat

Description

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()
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions