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,4ff929aa5c2b2834 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Ranges and (non)static constraints Date: Fri, 17 Nov 2006 17:04:00 +0100 Organization: Adalog Message-ID: References: <1pqs0gcno5o2t.1195tm9yap28b.dlg@40tude.net> <160ziiyah2n7g.5k340gtji747.dlg@40tude.net> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1163782894 3823 195.25.228.57 (17 Nov 2006 17:01:34 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 17 Nov 2006 17:01:34 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <160ziiyah2n7g.5k340gtji747.dlg@40tude.net> Xref: g2news2.google.com comp.lang.ada:7533 Date: 2006-11-17T17:04:00+01:00 List-Id: Dmitry A. Kazakov a �crit : > Actually it is not the machine which cannot, but the compiler. Why should I > care if an integer would fit a machine word? In theory you are right, but in practic you may assume that compiler writers are not crazy and want to provide a product that's useful to their clients. Although nothing really requires it in the RM, it is safe to assume that System.Max_Int is the biggest integer value that can be handled by the machine, and that Standard.Integer is the usual, efficient integer type. > 3) I don't want to mention any constraint now, but delegate it to the user. > Generics is the only option for this now. OK, that's another option. What's the problem? -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr