D - too protected?
- Pavel Minayev (14/14) Jul 20 2002 I'm back=2E First of all=2C greetings to everybody! It's great to
- Walter (17/17) Jul 20 2002 Argh!
I'm back=2E First of all=2C greetings to everybody! It's great to see Walter back at work - just dreaming of the next version of DMD=2E =3D=29 Now back to business=2E The =22protected=22 attribute seems to work strange in D=2E Try this=3A =09class A =09{ =09 protected void foo=28=29 { } =09} =09class B=3A A =09{ =09 protected void foo=28=29 { super=2Efoo=28=29=3B } =09} It'll tell you that super=2Efoo=28=29 is not accessible! Weird=2E
Jul 20 2002
Argh! "Pavel Minayev" <evilone omen.ru> wrote in message news:CFN374577761663542 news.digitalmars.com... I'm back. First of all, greetings to everybody! It's great to see Walter back at work - just dreaming of the next version of DMD. =) Now back to business. The "protected" attribute seems to work strange in D. Try this: class A { protected void foo() { } } class B: A { protected void foo() { super.foo(); } } It'll tell you that super.foo() is not accessible! Weird.
Jul 20 2002