[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] KDE4 Smoke ideas
From: Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date: 2005-06-10 10:41:13
Message-ID: 200506101241.13384.Richard_Dale () tipitina ! demon ! co ! uk
[Download RAW message or body]
On Friday 10 June 2005 10:46, Richard Dale wrote:
> I like the idea of having a signal connected to itself as a slot, which you
> disconnect and connect instead to the method in the scripting language to
> override. At the moment, the ruby bindings use a 'respond_to?' test to see
> if a virtual method has been overriden at runtime. But in ruby you can
> implement hook methods which are called whenever a method is added to a
> class or an instance. That could mean that we could intercept in the hook,
> and if virtual methods are overriden, do the disconnect/reconnect there.
Actually, I'm wrong here, although for a method overriden by an individual
instance the above is correct. But for methods overriden in a class, the
virtual method connections would need to be done in the constructor of a
specific instance, by checking which methods had been defined in ruby and
disconnecting/reconnecting only those.
-- Richard
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic