[Issue 10258] Add hasAccess trait

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 3 16:12:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10258



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-03 16:12:28 PDT ---
(In reply to comment #2)
> What if accessibility isn't the only problem?

That's exactly why we need this. is(typeof()) silences the problem altogether,
meaning if your template fails for a reason *other* than accessibility problem,
you won't know about it because is(typeof()) has silenced the error for you.

If on the other hand you check access, and you have access but then your
template still fails, you will *know* why it failed since the compiler will
tell you what went wrong, and then you can fix your template.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list