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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4751d44ff54a2c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-11 14:57:31 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!world!news From: Robert A Duff Subject: Re: 64-bit integers in Ada Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sun, 11 Aug 2002 21:56:56 GMT References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> <3D46DC69.7C291297@adaworks.com> <5ee5b646.0207301613.5b59616c@posting.google.com> <5ee5b646.0208030424.39703482@posting.google.com> <3D4C2805.62563584@adaworks.com> <5ee5b646.0208040607.ebb6909@posting.goog NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:27933 Date: 2002-08-11T21:56:56+00:00 List-Id: Simon Wright writes: > Well, I think that when you are writing libraries you may find that > Integer, Natural and Positive have their uses. For example, > > package Tables is > > type Item_Array is array (Positive range <>) of Items.Item_Container; > type Value_Array is array (Positive range <>) of Values.Value_Container; But using different index types for different unrelated arrays prevents accidentally using an index for the wrong array. - Bob