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-Thread: 103376,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!v23g2000prn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines Date: Mon, 29 Oct 2007 09:18:17 -0700 Organization: http://groups.google.com Message-ID: <1193674697.257242.163990@v23g2000prn.googlegroups.com> References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1193674697 5861 127.0.0.1 (29 Oct 2007 16:18:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 29 Oct 2007 16:18:17 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v23g2000prn.googlegroups.com; posting-host=66.126.103.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2617 Date: 2007-10-29T09:18:17-07:00 List-Id: On Oct 27, 1:15 pm, a...@anon.org (anon) wrote: > Ada Purist never and I mean NEVER uses IMAGE attribute, in the body of > a program. They create a package or sub-package that performs the IO > functions with the use of the IMAGE attribute. > > IMAGE attribute is the last thing a programmer should use. to print a value. > It is normally use for DEBUGGING ONLY! A programmer should always create > a routine or better yet a package that uses an algorithm to prints the value > without the use of attributes. Sorry, that's just nonsense. The semantics and result of 'Image are well-defined by the language. If those semantics are acceptable for a particular use, then there's nothing wrong with using 'Image (unless there's an issue with using a secondary stack as Ludovic mentioned). If they're not, then don't use it. 'Image does not return things in a way that makes it amenable to nicely formatted reports where things line up. (If you are creating a report with real numbers where you want all the decimal points to line up, 'Image is probably not best.) Other than that, I can see no reason not to use 'Image except that perhaps it has been decreed impure by the High Priests of Purity, who apparently have determined this in some ritual in which they dance around a statue of Ada Lovelace and burn huge listings of C++ code and chant some incantation to ask the statue what constructs are considered holy and pure. That's the only reason I can think of--- there doesn't seem to be any reason based in practical benefit to anyone. On the other hand, any ritual in which a bunch of C++ code is burned can't be all bad. P.S. I have been working with Ada for 19 years and I use 'Image when it's appropriate. I'm definitely not a newbie. -- Adam