[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    SmartWrappers, all tests OK.
From:       Nicolas Brodu <nicolas.brodu () free ! fr>
Date:       2000-03-31 20:27:49
[Download RAW message or body]

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)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic