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,76e8d825615718a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.straub-nv.de!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada.Containers Hash function for a set of small integers Date: Tue, 27 Apr 2010 20:08:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <50701baa-7c05-450c-a42d-c699516ddc00@t14g2000prm.googlegroups.com> <0590cf17-12ea-401d-9dc3-02365139b37e@p35g2000prf.googlegroups.com> <06f5335a-f686-4af1-893a-55517abe8d1a@s21g2000pri.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 27 Apr 2010 19:08:03 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="5155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i5p/B3BJJVxxYmmAzrXbDEKa+aoi51A8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) Cancel-Lock: sha1:s7kxU8qKss6OETCdJ1rnTH4vLVQ= sha1:FlVYzDZwrivL2YxEHcBa8FAYzJI= Xref: g2news1.google.com comp.lang.ada:10243 Date: 2010-04-27T20:08:02+01:00 List-Id: Adam Beneschan writes: > In any case, unless you're trying to develop code that compiles with > an Ada95 compiler, I'd prefer to use 'Mod over Unchecked_Conversion. > The whole purpose of 'Mod was to eliminate the need for > Unchecked_Conversion in cases like this, since it was impossible to > write "normal" code that would do the computation correctly. Ada95 it is .. though I could actually change now with no impact on the current user project, which is not going to migrate.