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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.207.2 with SMTP id fw2mr3574476qab.6.1365344969682; Sun, 07 Apr 2013 07:29:29 -0700 (PDT) X-Received: by 10.49.75.66 with SMTP id a2mr1430786qew.21.1365344969669; Sun, 07 Apr 2013 07:29:29 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!news.glorb.com!ca1no34045920qab.0!news-out.google.com!ef9ni9246qab.0!nntp.google.com!ca1no34045919qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 7 Apr 2013 07:29:29 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: <4a0e3b63-7139-4f03-bae2-35beca608bda@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5afc2bf5-515f-485c-a86f-35f52f854dad@googlegroups.com> Subject: Re: General integer-types. From: Shark8 Injection-Date: Sun, 07 Apr 2013 14:29:29 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:14908 Date: 2013-04-07T07:29:29-07:00 List-Id: On Sunday, April 7, 2013 2:45:59 AM UTC-6, J-P. Rosen wrote: > > A type definition must be static, and a size aspect too. A generic > formal is never static, therefore you can't define a type from a generic > parameter. (but of course, a constraint needs not be static, this is why > it works as a derived type). But then, all instantiations will use the > same size as Long_Long_Integer, which is likely not what you want. > Thanks for the clarification on the sizings (which was confusing). I was just wondering, because it seemed like a rather common thing [*every* framework/system seems to define its own -- OpenGL, PS, SWE, etc] that it might be nice to be able to "throw the size at a generic" and get it.