February 12, 2006
Jarrett Billingsley schrieb am 2006-02-08:
> "Walter Bright" <newshound@digitalmars.com> wrote in message news:drmfdg$1kcv$1@digitaldaemon.com...
>> I belatedly thought of that after I posted that last message, and you're absolutely right. I'll fix it.
>>
>
> I'm not sure if this is caused by the exact same thing, but I'm sure it's related.
>
> class A
> {
>  private int x;
> }
>
> class Wrapper
> {
>  static class B
>  {
>   void fork(A other)
>   {
>    writefln(other.x); // other.x is inaccessible
>   }
>  }
> }
>
> When defined in the same module.
>
> It doesn't change if B is defined static or not.
>
> Define B outside of Wrapper, and it works.

Added to DStress as http://dstress.kuehne.cn/run/p/private_11_A.d http://dstress.kuehne.cn/run/p/private_11_B.d http://dstress.kuehne.cn/run/p/private_11_C.d

Thomas


February 12, 2006
"Thomas Kuehne" <thomas-dloop@kuehne.cn> wrote in message news:qt73c3-4vs.ln1@birke.kuehne.cn...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jarrett Billingsley schrieb am 2006-02-08:
>> "Walter Bright" <newshound@digitalmars.com> wrote in message news:drmfdg$1kcv$1@digitaldaemon.com...
>>> I belatedly thought of that after I posted that last message, and you're absolutely right. I'll fix it.
>>>
>>
>> I'm not sure if this is caused by the exact same thing, but I'm sure it's related.
>>
>> class A
>> {
>>  private int x;
>> }
>>
>> class Wrapper
>> {
>>  static class B
>>  {
>>   void fork(A other)
>>   {
>>    writefln(other.x); // other.x is inaccessible
>>   }
>>  }
>> }
>>
>> When defined in the same module.
>>
>> It doesn't change if B is defined static or not.
>>
>> Define B outside of Wrapper, and it works.
>
> Added to DStress as http://dstress.kuehne.cn/run/p/private_11_A.d http://dstress.kuehne.cn/run/p/private_11_B.d http://dstress.kuehne.cn/run/p/private_11_C.d
>
> Thomas

Oh -- looks like 0.146 has fixed this, too.  :)


1 2 3 4
Next ›   Last »