
29 Sep
2009
29 Sep
'09
9:05 a.m.
Steve M. Robbins <steve <at> sumost.ca> writes:
On Tue, Sep 29, 2009 at 08:12:39AM +0200, Juergen Hunold wrote:
And as mentioned in another thread, using virtual destructors and getting rid of the (now even old-style casts ( ) might be a much better idea.
I second this. The current code using an "if" statement and down casting seems stunningly bad design, to me. What's wrong with the straightforward polymorphic approach?
Cause there is nothing polymorphic about the test_unit/test_case class usage. Gennadiy