July 20, 2002 too protected? | ||||
---|---|---|---|---|
| ||||
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. |
July 20, 2002 Re: too protected? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | 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. |
Copyright © 1999-2021 by the D Language Foundation