Re: [Vala] Bitwise and (c &) in Vala
- From: Jan Hudec <bulb ucw cz>
- To: Marco Trevisan (Treviño) <mail 3v1n0 net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Bitwise and (c &) in Vala
- Date: Thu, 17 Sep 2009 19:15:55 +0200
On Thu, Sep 17, 2009 at 18:15:21 +0200, Marco Trevisan (Treviño) wrote:
Hello I'd need to make some bitwise checks on a variable, but doing
something like:
if (condition & MyClass.ENUM_VALUE_1)
if ((condition & MyClass.ENUM_VALUE_1) != 0)
Elementary, dear Watson ;-)
--
Jan 'Bulb' Hudec <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]