From kde-multimedia Fri Mar 31 20:27:49 2000 From: Nicolas Brodu Date: Fri, 31 Mar 2000 20:27:49 +0000 To: kde-multimedia Subject: SmartWrappers, all tests OK. X-MARC-Message: https://marc.info/?l=kde-multimedia&m=95458854412002 Hi. It was really not as simple as it seemed, but the smartwrappers now work fine. It's now possible to pass the SmartWrappers as argument or return type, and they don't have virtuals anymore. Quite everything can be made const thanks to the pool implementation. The connect/disconnect/setValue functions take SmartWrappers as arguments, you do 'connect(a,b)' instead of 'connect(&a,&b)'. See example/flow.cc. I'm quite happy with this implementation, since it solves all the issues we had in the previous ones. There might always be room for improvement, (for ex assigning a number too each interface cleverly could perhaps prevent a string comparison in the dynamic casting), so for those interested the code is partly in mcop/reference.h and partly generated by mcopidl. Comments? Cheers, Nicolas -- A shortcut is the longest distance between two points. (unknown author)