[gnu.g++.lib.bug] A matter of curiosity concernin "good

jj@idris.id.dk (Jesper Joergensen [ris]) (10/17/89)

To:   Doug Lea (GNU libg++ mailing list)

From: Jesper Jorgensen
      Department of Computer Science
      Technical University of Denmark


  Thanks for your very quick response (I really didn't expect it so soon),
  now I know what conventions I have to follow. However, as far as I can see
  there is no reason for making the construction:

    if (good()) { while (get(ch)) { ... } ... }

  since "get(ch)" tests for "good()" the following should be sufficient:

    while (get(ch)) { ... }

  Just for reasons of effeciency, then I won't bother you anymore.

   -JJ