www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23311] New: Allow creating alias for __gshared

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

          Issue ID: 23311
           Summary: Allow creating alias for __gshared
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ryuukk.dev gmail.com

The following code doesn't compile

```
alias notls = __gshared;
```

onlineapp.d(2): Error: basic type expected, not `;`
onlineapp.d(2): Deprecation: storage class `__gshared` has no effect in type
aliases


__gshared is annoying to type, and doesn't convey the proper intention

Being able to alias it would solve my problem


`shared` is not a solution

--
Aug 29 2022