comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Ada Hash
Date: Sun, 29 Apr 2007 18:55:30 -0400
Date: 2007-04-29T18:55:30-04:00	[thread overview]
Message-ID: <wcc7iruiye5.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: u7irvyqtu.fsf@earthlink.net

Matthew Heaney <matthewjheaney@earthlink.net> 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



      reply	other threads:[~2007-04-29 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24 15:37 Ada Hash markp
2007-04-24 18:12 ` Randy Brukardt
2007-04-29 18:33 ` Matthew Heaney
2007-04-29 22:55   ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox