Re: Real Time IO routines
- From: Ludovic Brenta <ludovic@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Oct 2007 12:35:57 +0100
Simon Wright <simon.j.wright@xxxxxxx> writes:
anon@xxxxxxxx (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.
.
- Follow-Ups:
- Re: Real Time IO routines
- From: Simon Clubley
- Re: Real Time IO routines
- References:
- Real Time IO routines
- From: andrew
- Re: Real Time IO routines
- From: anon
- Re: Real Time IO routines
- From: Dmitry A. Kazakov
- Re: Real Time IO routines
- From: anon
- Re: Real Time IO routines
- From: Simon Wright
- Real Time IO routines
- Prev by Date: Re: Only one Ada vendor?
- Next by Date: Re: Only one Ada vendor?
- Previous by thread: Re: Real Time IO routines
- Next by thread: Re: Real Time IO routines
- Index(es):
Relevant Pages
|