Tilman Sauerbeck <til...@xmms.org> writes:

> Tenno Seremel [2010-02-03 21:49]:
>> >Your attachment didn't get through. Can you upload it somewhere?
>> >Attaching it with MIME type text/plain might also help.
>> 
>> Is pastebin ok? http://pastebin.ca/1786116
>> 
>> >The notifier's return value is only ignored for plain results.
>> 
>> They are returned but not used or return value is not touched at all?
>
> I don't understand the question. The caller ignores the return value.
>
>> I don't know how it works under the hood however if it expect a boolean
>> there can be an error (it's explained in this tutorial). If it's so it maybe 
>> I
>> should mention it too.
>
> The code in the Ruby bindings is this:
>
>
>     /* Call the notifier block. */
>     ret = rb_funcall (callback, rb_intern ("call"), 1, rbval);
>
>     if (ret == Qnil || ret == Qfalse)
>         return 0; /* don't call broadcast/signal again. */
>     else if (ret == Qtrue)
>         return 1; /* call me again. */
>     else
>         return NUM2INT (ret); /* No idea why is this here :-) */

in ruby, non nil/non false value are supposed to be true, so it should
be
    if (ret == Qnil || ret == Qfalse)
        return 0; /* don't call broadcast/signal again. */
    else
        return 1; /* call me again. */
to return true whenever the funcall yield to a true or non-nil value

-- 
Rémi Vanicat


--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to