D - more or less power than C++?

Dave Dave_member at pathlink.com
Sat Mar 4 17:39:21 PST 2006


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.
>  }
>
>-- 
>Derek Parnell
>Melbourne, Australia

Has this been reported as a bug over in D.bugs?

- Dave





More information about the Digitalmars-d mailing list