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 Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.k-dsl.de!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: 'Image for composite types Date: Thu, 28 May 2009 05:15:10 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: jsj6/wjO/cHSAHkcGxcp1Q.user.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 X-Newsreader: Tom's custom newsreader Cancel-Lock: sha1:1YqFzZAjImtH20iEIk9L/quZkgQ= Xref: g2news2.google.com comp.lang.ada:6052 Date: 2009-05-28T05:15:10+00:00 List-Id: > Is it just me that gets fed up with the lack of 'Image on composite > types? Could you use the S'Output stream mechanism? Declare your new Ada.Streams.Root_Stream_Type with a Write that writes as a text string to a log file, and your own elementary Integer'Write, Boolean'Write etc and let the stream mechanism generate a concatenation of components for composite types. Of course you would have to add a mechanism for line breaks or the output would be a continuous string of numbers, enumeration literals, and so forth, but you would need that also if there was a language defined 'Image.