Reginald Stadlbauer wrote: > > On Mon, 01 Nov 1999, Dirk A. Mueller wrote: > >Reginald Stadlbauer wrote: > > > >> KPresenter uses dynamic_casts. SO does it mean I have to switch all > >> back to C-casts now (would be lots of work :-(( ) > > > >errm, if const_casts would work, why don't use them? they're faster! :) > > Who says const_casts would work. > > I mean, you can always live without C++ casts, because > > dynamic_cast( aPtr )->doSomething() > > can be replaced by > > ( (AClass*)aPtr )->soSomething(). > > Itīs just that the first (C++) solution is the better one. > Hmm, but dynamic_cast will return 0 while (AClass*) will just do _something_. :) Greetings, Stephan -- As long as Linux remains a religion of freeware fanatics, Microsoft have nothing to worry about. By Michael Surkan, PC Week Online