[Issue 23311] Allow creating alias for __gshared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 1 13:17:30 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I'm sorry, but this bug report is invalid. By the current spec, aliases can
only be made to types or symbols, whereas __gshared is a type qualifier just
like const, immutable etc. You cannot do `alias im = immutable`. `__gshared` is
ugly and hard to type on purpose, because it is unsafe and requires that the
programmer really understands what he/she is doing.

I will close this as WONTFIX.

--


More information about the Digitalmars-d-bugs mailing list