Re: Real Time IO routines



On Oct 27, 1:15 pm, a...@xxxxxxxx (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

.



Relevant Pages

  • Re: Use a variable value in another variables name
    ... additional reason why using data as a whole symref is BAD compared to ... To an experienced programmer this feels intuatively bad but actually ... sure package variable _can_ be accessed from outside ... The problem that code using symbolic references is also usually ...
    (comp.lang.perl.misc)
  • Re: PowerEdge SC600 memory upgrade
    ... systems with Quickbooks 4 and the trash software, ... when I informed them that a software conversion to a newer custom ... CSV or other type file format, then have a programmer or perhaps the company ... whatever package they would like to buy will end up using addition/different ...
    (alt.sys.pc-clone.dell)
  • Re: Why Is This Bad Code?
    ... What happens if the programmer ... If there were some other reason to abstract them, ... > polymorphism. ... time permits. ...
    (comp.lang.cpp)
  • Re: ALTER design (Was: Code problems with Perform Thru Exit causes fall through)
    ... Or losing one's job. ... decent, sane, well-educated, clean-fingernailed programmer can see - then ... have to be re-run and one can lose customers because of dissatisfaction ... certain there was a Very Good Reason for that. ...
    (comp.lang.cobol)
  • Re: Stroustrups FAQ causes infinite loop when executed
    ... There may be ways in which inheritance could ... programmer could not have foreseen. ... >> complex calculations such as multiplying numerous transformation ... >> reason to cap the class. ...
    (comp.lang.cpp)