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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f3514db0a21f9b44 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!weretis.net!feeder2.news.weretis.net!news.mixmin.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Hexadecimal and stream element arrays Date: Mon, 19 Apr 2010 18:05:01 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <2f4313a5-bb3d-4f7f-8a86-7c8f7d549c53@k41g2000yqf.googlegroups.com> Injection-Date: Mon, 19 Apr 2010 18:05:01 +0000 (UTC) Injection-Info: news.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="9623"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2vfmpj54Gbcx492v6dvzCPaKaSwaA/Kw=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:lfoVEDQV2QDsTqwMU1kBkBdFP1s= Xref: g2news1.google.com comp.lang.ada:10070 Date: 2010-04-19T18:05:01+00:00 List-Id: Ludovic Brenta expounded in news:2f4313a5-bb3d-4f7f-8a86-7c8f7d549c53@k41g2000yqf.googlegroups.com: .. > You could use the predefined library to get a result using the Ada > "syntax for based literal" (ARM A.10.8(14)), e.g. 16#CE#. > > package Stream_Element_IO is > new Ada.Text_IO.Modular_IO (Num => Ada.Streams.Stream_Element); > > E : Ada.Streams.Stream_Element := ... > begin > Stream_Element_IO.Put (Item => E, Base => 16); > > (There are variants of Put that send the output to a File_Type or to a > string).. > Ludovic Brenta. I've been interested in finding these ways to "Put" (Hex) to a string, instead of a File_Type. But what I've seen is that "Put" always involves a File_Type (or implies one). So what have I missed? Warren