[Kde-bindings] Method missing loop.
Richard Dale
rdale at foton.es
Fri Jul 6 10:14:41 UTC 2007
On Thursday 05 July 2007, Han Holl wrote:
> On Thursday 05 July 2007, Han Holl wrote:
> > - if !defined(@functions) ||
> > @functions.nil? + if @functions.nil?
>
> It's a typo !!
> Should be
> if !defined?(@functions) || @functions.nil?
>
> Hence the method_missing traceback
I think the defined? test is redundant anyway because any instance variable
which hasn't been defined is nil:
mardigras rdale 505% irb
irb(main):001:0> @foo.nil?
=> true
irb(main):002:0> @foo = {}
=> {}
irb(main):003:0> @foo.nil?
=> false
On the other hand I can't see how the code has ever worked. But I have used
DCOPRefs quite a lot and never had problems
-- Richard
More information about the Kde-bindings
mailing list