D classes inherane. How it works.

Jason House jason.james.house at gmail.com
Thu Apr 10 04:58:36 PDT 2008


It's also safe to call private and templated functions.

Private functions, by definition, can't be overloaded. Templated functions are defined to be non-virtual.

Does D have final functions?

Lionello Lunesu Wrote:

> 
> "Jason House" <jason.james.house at gmail.com> wrote in message 
> news:fthbok$vs8$1 at digitalmars.com...
> > It should always be considered an error to call a virtual member function 
> > in a destructor. Someone should make a bug report for this. I would if I 
> > was at a computer and not typing with my thumb...
> >
> 
> I agree, but this would mean that only final, static and global functions 
> are allowed in ctors/dtors? Would be interesting to add a warning for this, 
> to see how many times it occurs in existing code.
> 
> L. 
> 




More information about the Digitalmars-d mailing list