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.9 required=5.0 tests=BAYES_00 autolearn=ham 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!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 24 Jun 2004 16:13:33 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <40BDBBFA.2020203@noplace.com> <1087475285.166449@master.nyc.kbcfp.com> <2jlepqF12qbb6U1@uni-berlin.de> <1774424.VSnnNmZCKX@linux1.krischik.com> <2jr3tjF149hg2U1@uni-berlin.de> <3596451.WJTNXepdF3@linux1.krischik.com> <4cWdnR6hNJN4R0TdRVn-hw@megapath.net> <1602287.U74iaLRb4H@linux1.krischik.com> Subject: Re: new revision ada (exception handling) Date: Thu, 24 Jun 2004 16:13:58 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-Y1kc5QtzcebLepFWxCs6oUKSQ8cUEp2R/Z5Roe7Xbi2du+/lD5czzzQMSVxRrKVirW7Gr0Tb9LYxbIX!gSxj7xSw7IC3o0jJBqk7YavVeRwobR8tvj5EbGA4gNJxYpMnaQjjB0E+lETV5ArLrNKm9BkCRPuc X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: g2news1.google.com comp.lang.ada:1867 Date: 2004-06-24T16:13:58-05:00 List-Id: "Martin Krischik" wrote in message news:1602287.U74iaLRb4H@linux1.krischik.com... > Randy Brukardt wrote: ... > > We considered it briefly, but there are a number of problems with such a > > feature. (One example is that Text_IO.Enumeration_IO depends on 'Image. > > How will it know what syntax to read for a user-defined image.) Anyway, we > > dropped the idea. > > At least for the first question I know the answer. It is the same as for > 'Output: No, that's *not* the question. (That's another question, which also needs to be answered.) The issue is that Enumeration_IO.Get needs to know the syntax of a enumeration literal in order to know when to stop reading. For instance, if a file has: Red;Green Blue and you do a Get, the next character to be read is ';', and "Red" will be passed to 'Image. But if you allow a user-defined 'Image, you don't know what to read in order to pass it to 'Image. Perhaps the semicolon is part of the literal, perhaps it is not. Perhaps the case matters to the literal, and perhaps not. So where does reading stop? (And remember, whatever is done has to be compatible with existing code and files.) If you just say that the syntax is still that of an identifier, then what you can do with a user-defined 'Image is very limited. "Real-Time" and "62B" would not be legitimate uses of 'Image, and the errors that would occur when trying to read them would be very mysterious to programmers. Randy.