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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,751584f55705ddb7 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Side-effect arithmetic again [was: Ada ... in embedded systems] Date: 1996/03/23 Message-ID: #1/1 X-Deja-AN: 143880364 references: <826571250.140@assen.demon.co.uk> <827432438.26126@assen.demon.co.uk> <4ivnr9$86o@dayuc.dayton.saic.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-03-23T00:00:00+00:00 List-Id: John said "Horrors! This assumes that Standard.Integer subsumes all possible ranges of 'Pos values for all discrete types (enumeration, integer, modular). A very dubious assumption! What about Long_Long_Integer? The long-term reusability of this package is problematic." Nope, not horrors at all. Increment should mean increment, not add, if you want to add, please use the + operator which is just fine for this purpose. I think it actively HELPS maintainability that increment accepts only small positive values. I also think that the extnsion of these operators, dubious in the first place, to weird cases like mod is a disservice. I can put up with += in C but I find the use of things like %= and ^= to be tortured syntax, which I prefer NOT to import in any case. I still think the whole business is a tempest in a teapot, and do not think that the use of any of these packages helps in reading, maintaining, or even writing code.