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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bdad4829476c86f X-Google-Attributes: gid103376,public From: johnherro@aol.com (John Herro) Subject: Re: Size of CHARACTER in Ada 83 Date: 1996/09/01 Message-ID: <50cfv2$s53@newsbf02.news.aol.com>#1/1 X-Deja-AN: 177830975 sender: root@newsbf02.news.aol.com references: organization: America Online, Inc. (1-800-827-6364) newsgroups: comp.lang.ada Date: 1996-09-01T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: > If you really want a 128 value character type, > define it yourself > type My_Char is new Character range Character'Val(0) .. Character'Val(127); > that will work in all versions of Ada. > But ... any program that restricts charcters to 128 > values these days is obsolescent, it seems to me. Well, I can think of a reason for wanting to restrict a program to the lower 128 characters. The high characters look different on different terminals. For example, the box drawing characters on a PC in text mode look entirely different on a VT102. In my Ada Tutor program, I use only characters 32 through 126, drawing boxes with plus signs, minus signs, and vertical bars. Although the box drawing characters would be much nicer, my text looks the same on different platforms. Here we're talking about portability not among different Ada compilers, but among different *terminals*. An alternative to Robert's suggestion is to write "*SUBTYPE* My_Char is Character range ... ." Then (with any version of Ada), you'll be able to use Text_IO. - John Herro Software Innovations Technology http://members.aol.com/AdaTutor ftp://members.aol.com/AdaTutor