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: <wccd7pvg0c6.fsf@world.std.com> (raw)
In-Reply-To: t7wvo3bu2h.fsf@calumny.jyacc.com

Hyman Rosen <hymie@prolifics.com> writes:

> If you look at the subject of this thread, you will be reminded that
> it started because the author of OpenToken used exactly this approach
> in his Ada code, in a way even worse than C's approach - making a
> potentially legal character the end-of-file sentinel.

Good point.

The sentinel approach really is a good one in many cases, but C and Ada
both get in the way of doing that right (ie making sure the sentinel
doesn't conflict with anything).  Except for pointers, where null is
safe to use.

>... It's not at all
> unnatural to want to use this kind of approach.

Agreed.  You just have to make sure you do it right.

> C does not "confuse" characters and integers. It allows arithmetic on
> chars, ...

To me, that is a confusion.  For characters in real life (the ones you
see on your screen or on paper) there is no natural meaningful addition.
There is comparison (we've all memorized the alphabet in order).  But no
addition.  Or multiplication!

- Bob




  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
2000-02-17  0:00                 ` Hyman Rosen
2000-02-17  0:00                   ` Robert A Duff [this message]
2000-02-17  0:00                   ` Hyman Rosen
2000-02-17  0:00                     ` Robert A Duff
2000-02-17  0:00                       ` Hyman Rosen
     [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