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!news4.google.com!proxad.net!feeder1-2.proxad.net!news.tiscali.fr!club-internet.fr!feedme-small.clubint.net!feeder.news-service.com!feeder2.cambrium.nl!feeder3.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> Date: Sun, 28 Oct 2007 12:35:57 +0100 Message-ID: <87hckbeajm.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:JX3YGhtewWjIqi7yfIUEBT02lks= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=C`5<33m=XPC8KY=8ilHV4D6`Y6aWje^YJ^@CGf85fQ=L1B4<]HH1:nC4h4`iF[b5dGO`l[]eZkoGE Xref: g2news2.google.com comp.lang.ada:2614 Date: 2007-10-28T12:35:57+01:00 List-Id: Simon Wright writes: > anon@anon.org (anon) writes: > >> 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. >> >> Mostly programs that are created by newbees use IMAGE attribute. > > I must be a newbie (NB spelling!) then. > > Where on earth do you get this viewpoint from? Please say why it is > better to instantiate enumeration IO for Boolean rather than to use > Boolean'Image? At Barco avionics, our coding standard prohibits functions that return unconstrained types because they use the secondary stack, making inspection of object code more difficult. That prohibition applies to 'Image, too. But outside of safety-critical software, I see no reason why 'Image should be prohibited. -- Ludovic Brenta.