Re: Glib::IO->add_watch not uninstalling
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Glib::IO->add_watch not uninstalling
- Date: Sun, 25 Feb 2007 16:01:45 +0100
On Sun, 2007-02-25 at 15:46 +0100, Jeffrey Ratcliffe wrote:
The Glib::Flags operators are explained in the "This Is Now That"
section of the Glib manpage.
But in the manpage, it implies (to me at least) that there is a
difference between &, >= and *. Is there difference?
* and & return the elements that are in both sets -- evaluating this in
a bool context works because an empty set turns into false and a
non-empty set turns into true. Note that * and & are commutative:
a * b == b * a.
=, on the other hand, specifically tests if the first set contains the
second set -- so >= is not commutative.
--
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]