[Vala] Bitwise and (c &) in Vala
- From: Marco Trevisan (Treviño) <mail 3v1n0 net>
- To: vala-list gnome org
- Subject: [Vala] Bitwise and (c &) in Vala
- Date: Thu, 17 Sep 2009 18:15:21 +0200
Hello I'd need to make some bitwise checks on a variable, but doing
something like:
if (condition & MyClass.ENUM_VALUE_1)
condition |= MyClass.ENUM_VALUE_2;
outputs me: "error : Condition must be boolean".
How to continue?
The same problems happens using the bitwise or (|).
Thanks.
PS: I'm just new to Vala :P
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]