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!seas.gwu.edu!mfeldman From: mfeldman@seas.gwu.edu (Mike Feldman) Newsgroups: comp.lang.ada Subject: Enumeration_IO Message-ID: <1846@sparko.gwu.edu> Date: 8 May 90 00:41:13 GMT Reply-To: mfeldman@seas.gwu.edu (Mike Feldman) Organization: The George Washington University, Washington D.C. List-Id: In preparing some programs for a book I am working on, I have gotten interested in the idiosyncracies of Enumeration_IO. Specifically, the PUT operations in this generic package are supposed to have a parameter SET of type TYPE_SET, where TYPE_SET is (LOWER_CASE, UPPER_CASE). Well, consider an enumeration type type COLORS is (red, blue, green); and an instance package COLOR_IO is new TEXT_IO.ENUMERATION_IO(ENUM => COLORS); and a variable C : COLORS := blue; and an output operation COLOR_IO.PUT(ITEM => C); All is well so far, everything compiles and runs except that the output value is BLUE, because the default is Upper_Case. Now change the output operation to COLOR_IO.PUT(ITEM => C, SET => LOWER_CASE); Irvine Ada (HP835), IntegrAda (IBM-PC), VADS (Sun3) and AdaVantage (Sun3) ALL bail out on a "LOWER_CASE is an undefined identifier" diagnostic. Clearly something is going on here. According to LRM 14.3.9 this should be allowed. Can anyone provide some enlightenment here? I will post a program if anyone wants to try this out. --------------------------------------------------------------------------- Prof. Michael Feldman Department of Electrical Engineering and Computer Science The George Washington University Washington, DC 20052 +1-202-994-5253 mfeldman@seas.gwu.edu ---------------------------------------------------------------------------