comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Announce: OpenToken 2.0 released
Date: 2000/02/17
Date: 2000-02-17T00:00:00+00:00	[thread overview]
Message-ID: <wccg0urgayx.fsf@world.std.com> (raw)
In-Reply-To: t7bt5qrsgj.fsf@calumny.jyacc.com

Hyman Rosen <hymie@prolifics.com> writes:

> The C/C++ stream interface concerns itself with reading characters
> from input streams. The char type is able to hold any character
> read from a stream. This discussion is about how input functions
> can provide end-of-file notification. One way is to have an
> out-of-band value returned by the single-character reader function.
> The C way of doing this is to have the return type of that function
> be int. It is then the case that if the implementation has int and
> char the same size, and the input format is such that every possible
> bit pattern for char may be present, then this out-of-band method
> will not work, and one of the available alternate methods must be
> used, such as fread or feof. This situation is rare, and may even be
> non-existent.
> 
> Do you feel that your comment has contributed anything to this
> discussion? To me it seems to be a snide and pointless attack on C.

I'm sorry to offend you.

My point was simply that the C programming language has a design flaw
(namely, confusion between characters and integers) that contributes to
the poor design we were talking about (namely, assuming that int can
represent every char value, plus at least one more value, which is not
always the case).  In my opinion, of course.  Again, I apologize if my
criticism of these particular aspects of C has offended you.

- Bob

P.S. If it makes you feel better, I have a habit of criticizing certain
aspects of every programming language I've ever learned, including the
ones I've helped design.  ;-) ;-)




  parent reply	other threads:[~2000-02-17  0:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-27  0:00 Announce: OpenToken 2.0 released Ted Dennison
2000-01-28  0:00 ` Jürgen Pfeifer
2000-01-28  0:00   ` Ted Dennison
2000-01-31  0:00 ` Hyman Rosen
2000-02-01  0:00   ` Ted Dennison
2000-02-01  0:00     ` Hyman Rosen
2000-02-01  0:00       ` David Starner
2000-02-01  0:00         ` Brian Rogoff
2000-02-01  0:00           ` Hyman Rosen
2000-02-01  0:00             ` Brian Rogoff
2000-02-02  0:00               ` Hyman Rosen
2000-02-02  0:00             ` Vladimir Olensky
2000-02-01  0:00               ` Hyman Rosen
2000-02-02  0:00             ` Jeff Carter
2000-02-02  0:00       ` Ted Dennison
2000-02-04  0:00         ` Ted Dennison
2000-02-05  0:00           ` Ehud Lamm
2000-02-04  0:00       ` Florian Weimer
2000-02-07  0:00         ` Hyman Rosen
2000-02-07  0:00           ` Florian Weimer
2000-02-07  0:00             ` Hyman Rosen
2000-02-09  0:00           ` Robert A Duff
2000-02-09  0:00             ` Hyman Rosen
2000-02-09  0:00               ` Larry Kilgallen
2000-02-17  0:00               ` Robert A Duff [this message]
2000-02-17  0:00                 ` Hyman Rosen
2000-02-17  0:00                   ` Hyman Rosen
2000-02-17  0:00                     ` Robert A Duff
2000-02-17  0:00                       ` Hyman Rosen
2000-02-17  0:00                   ` Robert A Duff
     [not found]                   ` <88iuk2$s6d3@ftp.kvaerner.com>
2000-03-05  0:00                     ` [OT] C and in-band signalling (was: Re: Announce: OpenToken 2.0 released) Florian Weimer
2000-03-06  0:00                       ` Tarjei T. Jensen
2000-03-06  0:00                         ` Keith Thompson
replies disabled

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