[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bitwise confusion?
- From: Coda Highland <chighland@...>
- Date: Thu, 7 Jan 2016 13:21:28 -0800
On Thu, Jan 7, 2016 at 1:19 PM, Ką Mykolas <email@example.com> wrote:
> On 1/7/16, Coda Highland <firstname.lastname@example.org> wrote:
>> Basically, you should always use a conditional operator (!= 0 perhaps)
>> when using the result of bitwise ops in a conditional.
> In case of Lua:
> ~= 0
Oh right, yes yes, I haven't actually written Lua code in earnest in
about a year and a half because of a job change. ^^() One of those
things I always wanted to get back to but haven't had a chance.