Possible regression (2.060 -> 2.061) with member access

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Feb 9 12:34:54 PST 2013


On 2/9/13, kenji hara <k.hara.pg at gmail.com> wrote:
> It's introduced by fixing issue 5385, so at least not a regression

Perhaps we could relax the rule and allow bypassing access
restrictions when using typeof().

There are similar bugs opened about purity, where e.g. you can't check
the length of an impure static array in a pure function (even though
it will never change length).

I think we'll have to define in the spec exactly what is and isn't
allowed and then implement this properly, otherwise we risk fixing bug
for person #1 which ends up breaking code for person #2 (which is
exactly what happened with fixing 5385).


More information about the Digitalmars-d mailing list