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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,115cdbb394b3e615 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Wes Groleau Newsgroups: comp.lang.ada Subject: Re: Why can't you create a out of order subtype? Date: Thu, 03 Feb 2005 22:42:22 -0500 Organization: Ain't no organization here! Message-ID: <36g98lF516al9U1@individual.net> References: <1107301914.648240.237290@g14g2000cwa.googlegroups.com> <36do2aF4sooriU1@individual.net> Reply-To: groleau+news@freeshell.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net U1vDJTcwK1068ZJSdpfVjQDQZHPl/K/smguWHEKSX1A5wWt0og User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:8162 Date: 2005-02-03T22:42:22-05:00 List-Id: Marius Amado Alves wrote: >> When I was still in the industry, our Ada vendor >> implemented Text_IO.End_of_File thusly: >> >> ... >> exception >> when End_Error => return True; >> end End_Of_File; > > I'm curious about the "..." part. Was the exception ALWAYS raised? No, only if you were at end of file. The ... was an attempt to read from the file, and if no exception, to put the file back in its previous state. The irony is that the purpose of calling the function before reading is to avoid raising an exception when you read. -- Wes Groleau Is it an on-line compliment to call someone a Net Wit ?