[Kde-bindings] Implementing Ruby DCOP

Alexander Kellett lypanov at kde.org
Fri Sep 26 05:31:38 UTC 2003


On Thu, Sep 25, 2003 at 07:02:25PM -0700, Ashley Winters wrote:
> If I were writing it for Perl, I would likely hijack dcopClient() (or
> the object it's returning) to return an object which would accept
> methods through AUTOLOAD. I'd try to make it work like:
> 
> $kapp->dcopClient->clientDied($pid)
> 
> I suspect something similar is possible in Ruby, if so inclined?

yeah. and with a sane syntax :)

i'd suggest $kapp->dcopClient->signals->clientDied($pid) 
personally to keep method name collisions down. 

Alex


More information about the Kde-bindings mailing list