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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-19 22:55:06 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!news-out.superfeed.net!propagator2-maxim!news-in.superfeed.net!logbridge.uoregon.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: += in ada Date: Mon, 20 Oct 2003 01:52:01 -0400 Organization: Michigan State University Message-ID: References: <3F7316F7.219F@mail.ru> <49cbf610.0310070205.2937e71a@posting.google.com> <49cbf610.0310101231.2358762a@posting.google.com> NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:1174 Date: 2003-10-20T01:52:01-04:00 List-Id: "Robert A Duff" wrote in message news:wccsmlodbyh.fsf@shell01.TheWorld.com... > Because you have to instantiate the doggone thing for every integer type > where you might want to do Add. And you have to anticipate which types > those are, or else do it when it's unnecessary. It leads to a lot of > useless (unreadable) clutter in the code. So nobody bothers with that; > we all just write X := X + 1, even when X is slightly complicated. What is so wrong with something like? type My_Numbers is range 0..255; package Augmented_My_Numbers is new Augmented_Assignments(My_Numbers); with an optional use Augmented_My_Numbers; So there isn't that much clutter. However, I do agree that