Thread overview
[Issue 19189] Accessing private member of template allowed
Aug 25, 2018
Yuxuan Shui
Aug 25, 2018
Basile B.
Mar 21, 2020
Basile-z
August 25, 2018
https://issues.dlang.org/show_bug.cgi?id=19189

Yuxuan Shui <yshuiv7@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Accessing private template  |Accessing private member of
                   |member allowed              |template allowed

--
August 25, 2018
https://issues.dlang.org/show_bug.cgi?id=19189

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |INVALID

--- Comment #1 from Basile B. <b2.temp@gmx.com> ---
**Within** a module its private members are accessible from its other members, this works like this by design. See point 2 here https://dlang.org/spec/attribute.html#visibility_attributes

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19189

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--