Re: inheritance bug?
Isaac Gouy <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> >other motivation was making it easier to ensure new code versions do > >not break, at the cost of making it more difficult to extend code in > >subclasses. http://www.artima.com/intv/nonvirtual.html > > > That's a very good motivation. But 'override' itself solves that > problem (or like suggest Brian, the oppose which is to make > declarations), no need for 'virtual'. What would be the problem with Dylan like behaviour? "define method creates a method and adds it to a generic function in a module variable. If the module variable indicated is not already defined, it is defined as with define generic. Thus, define method will create a new generic function or extend an old one, as needed." http://www.gwydiondylan.org/books/drm/drm_48.html#HEADING48-0 __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ------------------------------------------------------- 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