D classes inherane. How it works.

Lionello Lunesu lionello at lunesu.remove.com
Tue Apr 8 23:42:36 PDT 2008


"Robert Fraser" <fraserofthenight at gmail.com> wrote in message 
news:fthlbc$1fro$2 at digitalmars.com...
> Lionello Lunesu wrote:
>>  It's a good thing I avoid inheritance like
>> the plague lately.
>
> Wouldn't it be better to avoid destructors like the plague instead?

I think there are more problems with inheritance than these "virtual calls 
in ctor/dtor" : )

I used to be so fond of OOP and its inheritance, but lately I find myself 
preferring composition and free-functions to "class frameworks".

L. 




More information about the Digitalmars-d mailing list