Article View: borland.public.cppbuilder.nativeapi
Article #5165Re: Another delphi translation please!
From: Alan Bellingham
Date: Tue, 27 Sep 2005 16:11
Date: Tue, 27 Sep 2005 16:11
22 lines
1767 bytes
1767 bytes
Alan Bellingham <alanb@episys.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 >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
Technical Details
Message-ID:
<elrij1lnfbbepf58aml7us2tmo3vp5utr2@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43370a81@newsgroups.borland.com> <4337b0dd$1@newsgroups.borland.com> <4337e343@newsgroups.borland.com> <4337fdd8@newsgroups.borland.com> <4338f3fe$1@newsgroups.borland.com> <433937cc@newsgroups.borland.com> <43393a2d@newsgroups.borland.com> <43393ace@newsgroups.borland.com> <rdjij19ghqeeuvj16k7irogmimfeqhitem@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6ea8b2c4d2578842 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Another delphi translation please! Date: Tue, 27 Sep 2005 17:11:49 +0100 Reply-To: alanb@episys.com Message-ID: <elrij1lnfbbepf58aml7us2tmo3vp5utr2@4ax.com> References: <43370a81@newsgroups.borland.com> <4337b0dd$1@newsgroups.borland.com> <4337e343@newsgroups.borland.com> <4337fdd8@newsgroups.borland.com> <4338f3fe$1@newsgroups.borland.com> <433937cc@newsgroups.borland.com> <43393a2d@newsgroups.borland.com> <43393ace@newsgroups.borland.com> <rdjij19ghqeeuvj16k7irogmimfeqhitem@4ax.com> X-Newsreader: Forte Agent 3.0/32.763 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1127837397 193.129.251.253 (27 Sep 2005 09:09:57 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail