D - more or less power than C++?

Bruno Medeiros daiphoenixNO at SPAMlycos.com
Sun Mar 5 02:32:22 PST 2006


Thomas Kuehne wrote:
> -----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-----

Oops, this means I reported the bug twice. :/ Maybe it is time to look 
in that bugzilla.
But anyway, does you assigning it a test case make it an officially 
recognized bug?


-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list