Re: [Vala] Bitwise and (c &) in Vala



 
 if (condition & MyClass.ENUM_VALUE_1)

if ((condition & MyClass.ENUM_VALUE_1) != 0)

Elementary, dear Watson ;-)

... in every other language than C ;)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]