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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,31982f45a4d88565 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-01 11:20:37 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: A Record Interpretation of an Array Date: Fri, 01 Jun 2001 14:20:36 -0400 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3B17DCF4.E866E95E@averstar.com> References: <3B12C9E0.5E9B06C8@earthlink.net> <3B178027.BA1CBB00@earthlink.net> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 991419637 23169 141.199.8.77 (1 Jun 2001 18:20:37 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 1 Jun 2001 18:20:37 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:7990 Date: 2001-06-01T18:20:37+00:00 List-Id: "Marc A. Criley" wrote: > ... > What I've got here, though, is a low-level debugging aid that directly > manipulates raw byte streams, and is therefore intimately concerned with > the layout of data, whether it be scalars, records, or arrays. > ... > So the question then concerns the reasonableness of > mapping a physical Ada array to this same abstract record--with the > record fields representing array elements. I would say not bother using a record, but instead consider using an array indexed by an enumeration type, where the enumeration literals correspond to the names of the record fields. > > Marc -- -Tucker Taft stt@avercom.net http://www.avercom.net Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/~stt)