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.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!software.org!blakemor From: blakemor@software.org (Alex Blakemore) Newsgroups: comp.lang.ada Subject: Re: Enumeration_IO Message-ID: <1117@software.software.org> Date: 8 May 90 16:38:11 GMT References: <1846@sparko.gwu.edu> Sender: news@software.org Reply-To: blakemor@software.org (Alex Blakemore) Organization: Software Productivity Consortium, Herndon, Virginia List-Id: In article <1846@sparko.gwu.edu> mfeldman@seas.gwu.edu (Mike Feldman) writes: > In preparing some programs for a book I am working on ... > Can anyone provide some enlightenment here? You forgot to specify the complete name of the enumeration literal. They are only directly visible where the type is directly visible. Change > COLOR_IO.PUT(ITEM => C, SET => LOWER_CASE); to COLOR_IO.PUT(ITEM => C, SET => TEXT_IO.LOWER_CASE); ^^^^^^^^ P.S. You're not going to use all caps for everything in your book are you? Too many people think Ada requires LONG_NAMES_WITH_ALL_CAPS_FOR_EVERYTHING ----------------------------------------------------------------------- Alex Blakemore Internet: blakemore@software.org Software Productivity Consortium UUNET: ...!uunet!software!blakemore 2214 Rock Hill Rd, Herndon VA 22070 Bellnet: (703) 742-7125