Problem adding Ulongint numbers

New to FreeBASIC? Post your questions here.
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: Problem adding Ulongint numbers

Post by caseih »

Yes that's what I was getting at. Bitset(a,b) is the exact equivalent to:

Code: Select all

a = a OR (1 shl b)
In fact that's how FB implements it. You can OR all the individual bits together in one expression if you wished. This is an extremely common idiom for defining flags.
Post Reply