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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,641f47d4563311a6 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Array of bytes type Date: 2000/05/19 Message-ID: <39256D59.1CAF2A4D@quadruscorp.com>#1/1 X-Deja-AN: 625402970 Content-Transfer-Encoding: 7bit References: <3924E094.6B03B5BD@concentric.net> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 19 May 2000 13:38:47 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-05-19T13:38:47+00:00 List-Id: Joseph P Vlietstra wrote: > We will probably standardize on one array of bytes type, play with > renames, etc. But this effort has raises a question: what is the > plainest, simplest to reuse, declaration of an array of bytes? I would use the stuff in Ada.Streams. Given that its part of the language standard, many features become available automatically as a result. Also, add-on software is likely to utilize it as well. As for the stream element being other than a byte in size, I'd guess this is likely to be a non-issue. Most machines use byte oriented storage and I'd think (but have never surveyed) most compilers would match this. It is the most universally used size for so many things that an implementor would be foolish to do otherwise. The only exception I could think of would be if someone had an implementation for a machine like the Mil-Std-1750a where the standard storage unit is a 16 bit word. Those cases are so rare that I wouldn't worry about it. (The standard probably didn't explicitly specify a byte just in case there was an oddball architecture like this being targeted, but I'd guess most everyone expected this would normally be done as a byte.) MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================