Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #616
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Subject | Re: Can anyone spot why this menu doesn't change anything please. |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2011-08-14 12:43 +0100 |
| Message-ID | <52029c18aaNews03@avisoft.f9.co.uk> (permalink) |
| References | <b23406a1-d5de-42a9-8904-ae0fcdc5b8ab@s7g2000yqk.googlegroups.com> <5202921b82News03@avisoft.f9.co.uk> <5cfafa70-0593-461f-a7e5-0acda11e9a84@s7g2000yqk.googlegroups.com> |
| Organization | None |
On 14 Aug, in article
<5cfafa70-0593-461f-a7e5-0acda11e9a84@s7g2000yqk.googlegroups.com>,
Gazza <usenet@garethlock.com> wrote:
> That might explain some strange behaviour in another project I
> finished with a while ago.
Low level code MUST be tested, for just these reasons.
> Now I guess I'll have to find a bit of code that DOES clear the bit at
> <pos> in bitmask <mask> lol...
You could try...
mask% = mask% AND NOT (1<<pos%)
but *you* MUST test it!
Remember that code always does what you ask! The difficult bit is seeing
where YOU have asked it to do the wrong thing. That is why you need a
strict debugging and testing routine. NEVER assume that code works as you
want! Most of the programming queries you have posted fall into this
category. I say again, try Reporter - it is why it was written in the
first place!!
And that is all bitter experience after a mere 42 years of trying to get
computers to do what I want!
Martin
--
Martin Avison
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 07:01 -0700
Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-13 16:18 +0100
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 09:47 -0700
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 11:41 -0700
Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-13 23:35 +0100
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 15:45 -0700
Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 10:54 +0100
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-14 04:27 -0700
Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 12:43 +0100
Re: Can anyone spot why this menu doesn't change anything please. Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-08-14 14:18 +0100
Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 15:24 +0100
Re: Can anyone spot why this menu doesn't change anything please. "Barry Allen (news)" <evanallen@onetel.net.uk.invalid> - 2011-08-14 15:48 +0100
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-14 08:46 -0700
Re: Can anyone spot why this menu doesn't change anything please. Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-08-14 18:36 +0100
Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-21 02:50 -0700
Re: Can anyone spot why this menu doesn't change anything please. Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-08-13 18:00 +0100
csiph-web