From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,36b302576d78847a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 21 Jul 2006 14:45:04 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: How do you bitwise operations in Ada '83 and '95 References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 21 Jul 2006 14:45:05 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-PL8VhYdkDOPQb2+P6cKxPqzPLPZTej5yjk2x/nOfCyLrRTRr3pb/dnzqK3nMwghBbwquYNwpKvWZvqB!7yCnKcms5nx8xwng664bvC5lJDXG7PwNX/+zF1hWXG60SOCnZyJCJ1dwZm5M7oKAmcYN3A1O/39W!Q8K6NUADKcZcRQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5867 Date: 2006-07-21T14:45:05-05:00 List-Id: > Seriously, the C > > field = (longword >> 15) & 0x3f; > > is pretty clear. Not as clear, and more error prone than field := soccer_schedule.location; Not to mention that "field" could be of type "soccer_field_ids" in Ada, thus allowing the compiler to check that you aren't assigning the hour of the game to the variable "field", rather than of type "Unsigned_96" which prevents the compiler from helping you guard against error.