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,4b4c3319d9998f6b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-29 11:04:46 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Stream_Element_Array 2 String Date: 29 Mar 2004 20:00:43 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1080587085 11133 62.49.19.209 (29 Mar 2004 19:04:45 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 29 Mar 2004 19:04:45 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:6654 Date: 2004-03-29T20:00:43+01:00 List-Id: Duncan Sands writes: > > There is a third way, using address overlays, which is possibly > > rather easier to get wrong .. I always feel uncomfortable with it, > > but here goes: > > What if a Stream_Element is not the same size as a Character? You are using bizarre hardware? Of course my suggestion will only work in the circumstances where any other unchecked conversion would have worked too. Since I am in an environment where microseconds count, and the hardware is not bizarre, I am perfectly happy with assuming that pragma Assert (Stream_Element'Size = Character'Size); Is unnecessary ..