Re: Glib::Flags overload !=
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: Glib::Flags overload !=
- Date: Tue, 20 May 2008 20:17:41 +0200
Kevin Ryde wrote:
'==' => \&eq, 'eq' => \&eq, # eq for is_deeply in Test::More
+ '!=' => \&ne,
Also 'ne' => \&ne perhaps? The same as for the eq.
I'm not sure. I don't think programmers should use 'ne' to compare
Glib::Flags. Just as they shouldn't use 'eq' -- the 'eq' was only added
to make Test::More's is_deeply work correctly when Glib::Flags are involved.
--
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]