www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22544] New: [spec] C++ and Objective-C are not single tokens

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

          Issue ID: 22544
           Summary: [spec] C++ and Objective-C are not single tokens
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

See: https://forum.dlang.org/post/paykebwkhaxnkqazjnxo forum.dlang.org

```
LinkageAttribute:
    extern ( LinkageType )
    extern ( C++ , )
    extern ( C++ , QualifiedIdentifier )
    extern ( C++ , NamespaceList )

LinkageType:
    C
    C++
    D
    Windows
    System
    Objective-C
```

C++ and Objective-C are not single tokens, this is allowed:
```
extern(C
       ++)
void f() {}

extern(Objective
       -
       C)
void g() {}
```

The spec should reflect that.

--
Nov 25 2021