May.25.2020 -- CAlive to introduce !& operator

8 views
Skip to first unread message

Rick C. Hodgin

unread,
May 25, 2020, 9:59:04 PM5/25/20
to CAlive Programming Language
CAlive will introduce the !& operator, which is the equivalent of doing a bit test on the lvalue and having true be reported if it doesn't match.

    // Traditional code, test i against bits 101 being NOT turned on
    if (!(i & 5))
        // Code here

    // Using !& operator:
    if (i !& 5)
        // Code here

-- 
Rick C. Hodgin

Reply all
Reply to author
Forward
0 new messages