Re: Another delphi translation please!


2005-09-28 12:11:49 AM
cppbuilder81
Alan Bellingham < XXXX@XXXXX.COM >wrote:
Quote
>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
code.
[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