comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: General integer-types.
Date: Sun, 7 Apr 2013 07:29:29 -0700 (PDT)
Date: 2013-04-07T07:29:29-07:00	[thread overview]
Message-ID: <5afc2bf5-515f-485c-a86f-35f52f854dad@googlegroups.com> (raw)
In-Reply-To: <kjrbje$akp$1@dont-email.me>

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.

      reply	other threads:[~2013-04-07 14:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07  1:45 General integer-types Shark8
2013-04-07  8:45 ` J-P. Rosen
2013-04-07 14:29   ` Shark8 [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