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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f17381a34283299 X-Google-Attributes: gid103376,public From: Melanie Shatilla Subject: Enumeration I/O Date: 1998/02/10 Message-ID: <34DF9BBF.9FEA859B@er.uqam.ca>#1/1 X-Deja-AN: 323580340 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 NNTP-Posting-Date: Mon, 09 Feb 1998 19:19:53 EST Content-Type: text/plain; charset=us-ascii Organization: Universit� du Qu�bec � Montr�al (UQAM) Newsgroups: comp.lang.ada Date: 1998-02-10T00:00:00+00:00 List-Id: Hi, I'm in my second semester of Computer Science and I hope someone can help me solve a very basic problem, for which I can't seem to find a solution to in any of my textbooks : I've declared an enumeration type with character literals, and a variable of this type, for example : TYPE Symbols is ('%', '$', 'a'); Symb : Symbols := '$'; package Symbols_IO is new Text_IO.Enumeration_IO(Symbols); When I give the instruction : Symbols_IO.Put(Symb); ...I get the right symbol but with the quotes (and I don't want them). Obviously, I've thought of writing something like : If Symb = '$' then Text_IO.Put ('$'); end if; ..but there must be a more convenient way, I hope! Any suggestions anyone ?