|
Rockbox mail archiveSubject: Re: Destructors in Theme Editor: virtual or non virtual?Re: Destructors in Theme Editor: virtual or non virtual?
From: Al Le <Al.Le_at_gmx.de>
Date: Thu, 17 Jun 2010 13:05:43 +0200 > You are perfectly right. When deriving from a class, the destructor should > always be virtual in order to call the destructor of the base class. Hrm... I'd understand it the other way around: it should be virtual so that the correct (of the derived class) destructor is called when the object is destroyed by the framework (probably a call via a pointer to a base class). But the net effect is the same ! :-) -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dslReceived on 2010-06-17 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |