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,ebe6e2ef707c0384 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: how to create a record References: <1162523698.802339.225760@h54g2000cwb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1162531757 12.201.97.213 (Fri, 03 Nov 2006 05:29:17 GMT) NNTP-Posting-Date: Fri, 03 Nov 2006 05:29:17 GMT Date: Fri, 03 Nov 2006 05:29:17 GMT Xref: g2news2.google.com comp.lang.ada:7344 Date: 2006-11-03T05:29:17+00:00 List-Id: Jeffrey Creem wrote: > > 1) You are using two different conventions in your program above. Both > CamelCase and the Traditional_Ada_Underscore method. Most Ada code tends > to use _ since that is what the LRM packages do (e.g. text_io) but > whatever you pick, try to stick with one style If you do use CamelCase, many of us will run your code through reformatters that will change it to Camelcase. If you don't like seeing that, use underscores to separate words in identifiers. > 2) Can't really guess where this is going but "struct_device" sounds > pretty C like. There are no 'structs' in Ada. Again this is just a silly > style thing and may not matter but it is probably best just live in the > style of whatever language you use. There are also no switch statements, no breaks, no casts, ... Using such terms implies (usually correctly) thinking at the low-level of most C code. Ada code is often much higher level. Using the Ada terms helps indicate that you're thinking at that higher lever (or helps pretend that you are; all this stuff about the Language Shootout is really concerned with low-level stuff that is an elephant most of the time). Also, this is an Ada newsgroup; understanding C terms is not a requirement. You can be sure your audience understands you by using Ada terms here. -- Jeff Carter "I soiled my armor, I was so scared." Monty Python & the Holy Grail 71