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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,caabf5265fad78e5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Mon, 29 Jun 2009 18:51:11 +0200 From: Martin Krischik User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: unsigned type References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <018nh6-cu72.ln1@macpro.krischik.com> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 89.236.182.117 X-Trace: news.sunsite.dk DXC=E9Yg[RZXeBGI[NbmUoDmmGYSB=nbEKnkK_OR4oRM;NgAS5daR30PdPEV:_8RJBabHM?QA2cYN[o4A -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rob Solomon schrieb: > I am trying to learn Ada. I am very familiar w/ Modula-2. I have done Modula-2 as well - so I know what you want. And reading all your other post I think you are on the wrong track. I might be wrong of course. Modula-2 is missing one important feature from Pascal: ranges. Ranges is a different way of thinking. With ranges you don't think about bit and bytes any more. With ranges you should stop thinking: What is the largest number one can fit into 32 bit or is CARDINAL large enough for my need. Instead you should thing: what is the largest number I truly need. Not the CPU should be the centre of your thinking but your problem at hand. i.E. type Day_Type is range 1 .. 31; type Month_Type is range 1 .. 12; type Year_Type is range 1800 .. 2100; type Date_Type is record Day : Day_Type; Month : Month_Type; Year : Year_Type; end record; Regards Martin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKSPD8ijwKaHyem9cRAnQbAKD06jn9yXF9NtaMymDa/EwjpPSoJwCg63to d52QWtBIkZwzsD0aIBOnzHw= =JRqC -----END PGP SIGNATURE-----