From: Michael Widenius
Date: October 17 1999 6:43pm
Subject: bit functions, or lack thereof...
List-Archive: http://lists.mysql.com/mysql/16207
Message-Id: <14346.6322.452103.906947@monty.pp.sci.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
>>>>> "Anthony" == Anthony R J Ball writes:
Anthony> Looking through the docs all I find for bit functions are & | << >>,
Anthony> now I may be wrong, but shouldn't there be a way to flip the bits? like the
Anthony> ~ operator?
Anthony> so to set flags (an unsigned int) you would do set flags = flags | 0x02
Anthony> and to unset flags you'd do set flags = flags & ~0x02
Anthony> ?
Anthony> Or am I simply forgetting some of my bit logic?
Anthony> Or is this just not implemented?
Hi!
You are right; We have forgot to add ~. I have now put this on our
TODO.
Regards,
Monty