To read all comments associated with this story, please click here.
There's a saying:
"Great minds think alike"
Who says they copied it?
Maybe the way Delphi and Qt implement the object class is one of the better ways to do it? The bonus is that it's extremely easy to switch between the two api's.
A car has four wheels and a steering wheel.
It makes no sense to create a car with one wheel and no steering wheel. If you know what I mean.
So they basically copied Delphi/Object Pascal's TObject with some container features?
Oh no, obviously they copied XMotif's Composite object class :-)
http://www.vaxination.ca/motif/Composite_3X.html
The parent-child pattern is pretty old, particularly with GUI toolkits. QObject makes use of this, with some nifty support for signals and slots, introspection and i18n too.







Member since:
2005-10-30
So they basically copied Delphi/Object Pascal's TObject with some container features?