void pointer syntax

dennis luehring dl.soluz at gmx.net
Wed May 16 05:09:02 PDT 2012


 >Am 16.05.2012 13:12, schrieb Stephen Jones:

just throw aways your sensless void pointer or whatever idea - create a 
base interface or better base-class - everything else is just damn wrong

btw: all oop widget sets for c++, java or else are haveing a widget base 
class that works like people telling you - try looking at Qt, 
Delphi-VLC, C#-Windows-Forms etc. they all got an TForm, TWidget, 
QWidget, Forms whatever baseclass

all you need to do is to have a common interface - thats OOP all about,
if you interested (or think you need to) get into implementation details 
of derived classe means you don't do OOP and then you need to do casting 
and all this strange looking stuff - but that will also happen in every 
other language around - because you do/think of OOP in a wrong way




More information about the Digitalmars-d-learn mailing list