[Issue 23311] New: Allow creating alias for __gshared
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 29 13:36:05 UTC 2022
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 at puremagic.com
Reporter: ryuukk.dev at 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
--
More information about the Digitalmars-d-bugs
mailing list