Possible regression (2.060 -> 2.061) with member access

Benjamin Thaut code at benjamin-thaut.de
Sun Feb 10 02:22:57 PST 2013


Am 10.02.2013 11:21, schrieb Dicebot:
> On Saturday, 9 February 2013 at 22:54:09 UTC, Jacob Carlborg wrote:
>> On 2013-02-09 21:51, Nick Sabalausky wrote:
>>
>>> I think that's asking for confusion to have different visibility rules
>>> inside and outside typeof().
>>>
>>> The typical way to access private members when really needed is via a
>>> reflection mechanism, and we already have a way to do that as two
>>> people have mentioned.
>>
>> Couldn't typeof() be considered part of a reflection mechanism?
>
> May be, but definitely not an advanced librar'ish one - contrary to
> .tupleof and some __traits is is a pretty common guest in user code.

Really? I'm using typeof all over the place in my user code.


More information about the Digitalmars-d mailing list