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,a4d2751f9487bd38 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-07 21:04:57 PST Message-ID: <3F0A42E3.58824809@somewhere.nil> Date: Tue, 08 Jul 2003 06:04:51 +0200 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Inc (was: Real data for a change in the assignment operators and Bounded_String discussions. ) References: <3F04F778.5090305@attbi.com> <3F09E6B8.FB19B956@somewhere.nil> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.218.93.79 X-Trace: news.swissonline.ch 1057637097 80.218.93.79 (8 Jul 2003 06:04:57 +0200) X-Complaints-To: abuse@swissonline.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!newsfeed.vmunix.org!news.imp.ch!news.imp.ch!news-zh.switch.ch!switch.ch!news.swissonline.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:40124 Date: 2003-07-08T06:04:51+02:00 List-Id: > [Inc] > >You certainly think to Borland Pascal. Yes, it was a good idea from them. > >(Standard) Pascal has only "Succ" and "Pred". Vinzent Hoefler: > Yes, but note the slight semantic difference there: Inc and Dec don't > come with range checks. Interesting. Of course the Ada implementation would follow the "natural" rule: range check (according to the type), unless suppressed. Maybe a precision for readers without too much exposure to Pascal: "Succ" and "Pred" are functions (x:= Succ(x)) like the eponym Ada attributes. ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!