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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1901f265c928a511 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Christoph Karl Walter Grein" Newsgroups: comp.lang.ada Subject: Re: new revision ada (exception handling) Date: Fri, 25 Jun 2004 11:48:11 +0200 Organization: http://freemail.web.de/ Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1088156912 30774 212.85.156.195 (25 Jun 2004 09:48:32 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 25 Jun 2004 09:48:32 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: Precedence: fm-user X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:1880 Date: 2004-06-25T11:48:11+02:00 > like the definition of Enumeration_IO.Get assumes that name ends can be > recognized prior knowing names, though A.10.10(9) does not read it > explicitly. Considering an enumeration type with images Red and Red1. Would > it be legal according to A.10.10(9) to read Red; and then raise Data_Error? If you read the chapter on inputting enumeration literals very carefully, you'll find that you have to read a sequence of input characters as long as the sequence is a legal sequence for Ada identifiers. Only after reading characters has ended, you make a check whether this sequence is a defined literal. It is irrelevant how long the expected literals are. So for instance when reading booleans, "trueanything.x" has to be read until the dot, leaving the dot and the x in the input stream. Then you compare trueanything to true and raise Data_Error. __________________________________________________________________ Zeigen Sie Emotionen mit der WEB.DE Bild-SMS! Das Bild ist gratis, Sie bezahlen nur den Versand. http://freemail.web.de/?mc=021196