From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Better way to fill Storage_IO? Date: Thu, 20 May 2021 08:38:55 +0300 Organization: Tidorum Ltd Message-ID: References: <3cfe02b8-18d3-4673-b808-48ad29092517n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net zBOVSSoOtePO0NA8OWeoww6Wt9Yym0QrKj+P4nW+/lPBZNRcsT Cancel-Lock: sha1:EVcmAWXDy5ufP+Cbmhq5BD9uDto= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:62016 List-Id: On 2021-05-19 23:18, Björn Lundin wrote: > Den 2021-05-19 kl. 21:25, skrev J-P. Rosen: >> .... >> 'Image was not intended for regular IO. >> > > If a function/procedure is public, users will use them. I agree, and I use 'Image a lot. > And very likely in ways 'not intended', > So there should be a clear statement in the RM making it clear > that using 'Image is not for regular IO. What could the RM say, as motivation? Your karma will decrease 5 points every time you use 'Image for regular IO? Or every such use brings a 1/10000 chance of aborting the program or producing wrong results? :-) > We use tons of it for writing to log files > This is why I want 'image for record types. > It would save me from writing To_String functions dumping record values > into the log. I think it made it into 202x but I am not sure. It is in the 202x proposal, RM 4.10 (32/5). See http://www.ada-auth.org/standards/2xaarm/html/AA-4-10.html.