Re: inheritance bug?
"Jason Thomas" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> Jason Thomas wrote: > > >What about doing #2 but allowing an optional override keyword if you > >want the compiler to check your spelling? > > > > > This sounds like a reasonable compromise. > > One tricky case to handle is a "silent override" which declares a > visibility different from the original one. It causes a good deal of > complication in the definition of Java. What should we do with that? > I think it should be the same as Java. Methods can't be overridden to be more private. I still don't understand why the original hello() method is overloading, not overriding. Is nice-void different than java-void? Is there a way to specifically declare the return type for the method as java-void (for readability/documentation purposes)? I'll update the wiki with more examples of using Nice from Java, but I need to know what I'm talking about! -Jason ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click