D - more or less power than C++?

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Mar 4 23:23:34 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave schrieb am 2006-03-05:
> In article <op.s5wvjbrq6b8z09 at ginger.vic.bigpond.net.au>, Derek Parnell says...
>>
>>Walter,
>>I know you are a busy person and this might have been missed, so I repeat  
>>the question for you.
>>
>>On Sat, 04 Mar 2006 15:02:35 +1100, Walter Bright
>>  <newshound at digitalmars.com> wrote:
>>
>>> The private/protected stuff works like it does in C++.
>>
>>  I'm not a C++ person so excuse my ignorance please, but are you saying
>>  that fully qualified references in C++ will override private/protected
>>  attributes? It does this in D.
>>
>>  //--- foo.d --
>>  private void Foo() { }
>>
>>  // --------------
>>
>>  //--- test.d --
>>  import foo;
>>  void main()
>>  {
>>      foo.Foo(); // Compiles!
>>      Foo();  // Doesn't compile.
>>  }
>>
>
> Has this been reported as a bug over in D.bugs?

http://dstress.kuehne.cn/www/dstress.html#private_12_B

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFECpUf3w+/yD4P9tIRAsRUAJ9V1GJH/jywtb2qYecacqsJO7zP2QCeJGJ/
7qzapVal6/Jdtkbg/siH8og=
=Ccdp
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list