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-Thread: 103376,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada exception block does NOT work? Date: Mon, 22 Aug 2005 17:51:49 +0200 Organization: Cablecom Newsserver Message-ID: <2392477.jJ3H776L2V@linux1.krischik.com> References: <4301ab29$0$6989$9b4e6d93@newsread2.arcor-online.net> <1639727.IzdcfkcRx7@linux1.krischik.com> <1227518.U5hWOOGjT8@linux1.krischik.com> <0pOdne-tWpnPLZXeRVn-sQ@rcn.net> NNTP-Posting-Host: 84-72-114-216.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1124728215 12436 84.72.114.216 (22 Aug 2005 16:30:15 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Mon, 22 Aug 2005 16:30:15 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:4252 Date: 2005-08-22T17:51:49+02:00 List-Id: Frank J. Lhota wrote: > "Martin Krischik" wrote in message > news:1227518.U5hWOOGjT8@linux1.krischik.com... >> It's because they used "signed int" for all file operations. Personally I >> consider that damm stupid - after all: have you ever seen a file with a >> negative size? >> >> Martin > > There is some utility to a negative file offset, for example fseek. I know - It was also a mistake to make a "do it all" fseek - There should have been a fabsseek and frelseek - then there wouldn't have been a problem with using unsigned long for file positions. But that's all water under the bridge now. > The > real mistake was not using a typedef for the file sizes and file offsets. Well they have it now with fgetpos and fsetpos. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com