|
From: | S11001001 |
Subject: | [DotGNU]private inheritence syntax (was Re: C@) |
Date: | Tue, 13 Aug 2002 13:50:06 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020812 |
Peter Minten wrote:
Peter Minten wrote:Good ideas, now we just need to figure out how to weave them into the language.I've worked it out. The private inheritance can be put in like this: "public class Foo : PublicParent, PublicInterface private PrivateClass"
I counter-suggest something out of C++: have a comma, force every private inherited class to have `private' before it, and allow the classes in any order. That is to say:
@examplepublic class Foo : private PrivateClass1, PublicParent, PublicInterface, private PrivateClass2 { /* ... */ };
@end example A little more typing, but less confusing, IMHO. BTW, dotgnu.org works again. It's registered to Bradley Kuhn. -- Stephen Compall DotGNU `Contributor' -- http://dotgnu.org Then again, a listener rarely leaves a Stallman speech not knowing where the true path to software righteousness lies. -- Sam Williams, "Free as in Freedom"
[Prev in Thread] | Current Thread | [Next in Thread] |