Re: Another delphi translation please!

2005-09-28 12:11:49 AM
Alan Bellingham < XXXX@XXXXX.COM >wrote:
>Blast, I still got it wrong...
>val = *(RomCode + i) & (1 << (b % 8));

This is more conventionally written as

val = RomCode[i] & (1 << (b % 8));

Certainly, the compiler will, unless totally broken, generate the same
[in response to an email]
And if the latter causes a problem, and the former does not, you've got
major problems with a confused compiler. That equivalence dates back a
third of a century.
Alan Bellingham
ACCU Conference 2006 - 19-22 April, Randolph Hotel, Oxford, UK