From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bf9d4ba0cfd8cb6 X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Announce: OpenToken 2.0 released Date: 2000/02/04 Message-ID: <87d7qck6pm.fsf@deneb.cygnus.argh.org>#1/1 X-Deja-AN: 581668827 References: <3890C62B.18309585@telepath.com> <876unj$jcs$1@nnrp1.deja.com> Mail-Copies-To: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.argh.org X-Trace: deneb.cygnus.argh.org 949699077 2237 192.168.1.2 (4 Feb 2000 21:17:57 GMT) Organization: Penguin on board User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.4 Mime-Version: 1.0 Reply-To: Florian Weimer NNTP-Posting-Date: 4 Feb 2000 21:17:57 GMT Newsgroups: comp.lang.ada Date: 2000-02-04T21:17:57+00:00 List-Id: Hyman Rosen writes: > By the way, the normal C/C++ style for handling EOF is to have the > return type of the character reader be such that it can hold any > value of the character set, plus an out-of-band value representing > EOF. The usual is '#define EOF -1' and 'int getchar()'. Unfortunately, this becomes inband signalling on some platforms (where sizeof(char) == sizeof(int)). Broken as designed.