Lack of isPublic isPrivate isProtected compile time reflection features
12345swordy
alexanderheistermann at gmail.com
Sun Jul 8 21:26:14 UTC 2018
On Sunday, 8 July 2018 at 21:20:27 UTC, Basile B. wrote:
> On Sunday, 8 July 2018 at 20:58:54 UTC, 12345swordy wrote:
>> I don't see it anywhere in the std.traits library nor in the
>> default compiler traits. This shouldn't be difficult to
>> implemented them in the std.traits library isn't it?
>>
>> -Alexander
>
> hello, look at
> __traits(getProtection)[1] in the language traits
>
> [1] https://dlang.org/spec/traits.html#getProtection
Oh, thank you!
-Alexander
More information about the Digitalmars-d
mailing list