I believe your assessment of the situation is both accurate and current. I too
noticed this years ago but never needed XOR often enough to make a bug report
out of it.
On Wed, Apr 01, 2020 at 05:00:08PM -0500, Snowman wrote:
CAUTION: This email originated from outside of the organization. Do not click
links or open attachments unless you recognize the sender and know the content
is safe.
I was surprised to find that jaws script still does not have an exclusive or,
operator.
Am I missing something?
I just want to toggle a bit.
The following code:
d = 1
d = d ^ 2
should toggle bit 2, and result in d = 3
It compiles, but it also clears bit 0, resulting in d=2
so, basically d=d^2 is the same as d=2
Who knows that the heck that caret means to jaws in that context. but, it does
compile.
Years ago, I had to come up with a work around, and I am a bit surprised to
see that the workaround is apparently still necessary.
d = d & (0-iMask)-1
Is that still the way you have to do this?
+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern time.
60's and 70's tunes, and gently conservative talk.
__________???
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
--
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was done."
--Helen Keller
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts