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,3ccb3e085f1dd380 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ada Hash Date: Sun, 29 Apr 2007 18:55:30 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1177429033.247571.9090@s33g2000prh.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1177887330 18153 192.74.137.71 (29 Apr 2007 22:55:30 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 29 Apr 2007 22:55:30 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:7tOFXta1SAfN7JXfdLeRt5ub1hw= Xref: g2news1.google.com comp.lang.ada:15407 Date: 2007-04-29T18:55:30-04:00 List-Id: Matthew Heaney writes: > If your integer subtype has negative values, then you could do something like: > > function Hash is > new Unchecked_Conversion (Integer, Hash_Type); Or use Hash_Type'Mod. - Bob