Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics
From: Hyman Rosen (hyrosen_at_mail.com)
Date: 06/14/04
- Next message: Berend de Boer: "Re: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Previous message: Robert I. Eachus: "Re: [newbie] simple(?) data structures"
- In reply to: Robert I. Eachus: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Next in thread: Alexander E. Kopilovich: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Reply: Alexander E. Kopilovich: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Jun 2004 02:09:36 GMT
Robert I. Eachus wrote:
> Check the length of the string to be read, then read either that
> number of characters or the maximum buffer size. Of course, this means
> in many cases you have to read the string twice while Ada allows you to
> read it once. (Ask for N characters and get a count of how many you get.)
Huh? fread, fgets, istream.getline, istream.read are all ways of
reading up to a pre-determined amount of data into a buffer in C
and C++. In no case does the string need to be read twice.
What a bizarre claim!
- Next message: Berend de Boer: "Re: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Previous message: Robert I. Eachus: "Re: [newbie] simple(?) data structures"
- In reply to: Robert I. Eachus: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Next in thread: Alexander E. Kopilovich: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Reply: Alexander E. Kopilovich: "Re: Ada BIND was: Improving Ada's image - Was: 7E7 Flight Controls Electronics"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|