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



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]