This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: language purist
- From: Martin Aliger <martin_aliger at email dot cz>
- To: <java at gcc dot gnu dot org>,<rainer dot klute at epost dot de>
- Date: Tue, 12 Nov 2002 12:24:30 +0100 (CET)
- Subject: Re: language purist
- Reply-to: <martin_aliger at email dot cz>
> >I do not cast doubt upon use of constants in interfaces (esp. in case you outline) but write interface consiting _only_ of constants? I think in this case is much better use of public class - there is no need to derive from it or implement something. Just public + class reference is enough. And it is clean...
>
> Yes, that's right - at least unless you want to allow to derive
> sub-interfaces from the first one that defines constants only.
You could use class inheritance as well as interface inheritance, don't you? Or could interfaces have multiple parents while classes could not? [i'm not friend of multiple inheritance anyway]
I tried to redesign it (mainly to test whether this interface usage does problems to gcj or not - seems negative). There is patch to review (I do not make any suggestion whether to apply it or not...) It is also more consistent witch foundation classes (like Short.MAX_VALUE)
Martin
______________________________________________________________________________
Email.cz -----> Vaše emailová schránka zdarma.
http://www.Email.cz <------------Pošta zdarma!