comp.lang.ada
 help / color / mirror / Atom feed
* Answer about text_io
@ 1986-04-17 18:12 Nelson.Weiderman
  0 siblings, 0 replies; only message in thread
From: Nelson.Weiderman @ 1986-04-17 18:12 UTC (permalink / raw)



  We have recently had the same difficulty reading enumerated data types
  and we also initially thought it was a problem with our compiler (John
  Goodenough please take note).  The answer to the riddle appears in ARM
  paragraph 14.3.5(5).  As long as the user enters characters which are
  valid in an enumeration literal, there are no problems (this seems to be
  the unstated assumption in both Booch and the ARM examples cited).  If the
  user enters an invalid character such as a "." or ";" then the last
  sentence of the cited paragraph comes into effect -- "The character or
  line terminator that causes input to cease remains available for
  subsequent input."  Hence the infinite loop.  Thus the examples are not
  as robust as they first appear, but the compilers are acting correctly.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1986-04-17 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-04-17 18:12 Answer about text_io Nelson.Weiderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox