When does final mean "maybe, kinda, sorta" ?

kris foo at bar.com
Mon Jan 22 17:43:51 PST 2007


Andrei Alexandrescu (See Website For Email) wrote:
> kris wrote:
> [snip]
> 
>> In short, it appears the example exhibits some poor practice 
>> (overriding private methods), is somewhat misleading (one certainly 
>> *hopes* private cannot be seen beyond module-scope), and discusses how 
>> to make "final" mean something quite other than final.
> 
> 
> I agree about the misleading part, but I don't think that overriding 
> private methods is poor practice. In fact I think it's rich practice 
> :o). See e.g. http://www.gotw.ca/publications/mill18.htm.
> 
> Andrei

Good point. With D, however, the override itself would probably have to 
be within the same module as the Template Method?



More information about the Digitalmars-d mailing list