comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: generic Integer for modular type bound
Date: Fri, 15 Oct 2004 16:00:13 GMT
Date: 2004-10-15T16:00:13+00:00	[thread overview]
Message-ID: <huSbd.106251$dP1.397602@newsc.telia.net> (raw)
In-Reply-To: <416fd34a$0$29515$636a15ce@news.free.fr>

Stany Marcel wrote:

> I tried to something like this:
> 
> generic
>     Size : Integer;
> 
> package MyGenPack
>     type MyType_T is mod Size;
> 
> but It doesn't works because Size is not static, so is there an other nice
> way to do this in Ada.

Maybe you can pass the type to the package?

generic
     type MyType_T is mod <>;
package MyGenPack

-- 
Björn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu




       reply	other threads:[~2004-10-15 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <416fd34a$0$29515$636a15ce@news.free.fr>
2004-10-15 16:00 ` Björn Persson [this message]
2004-10-15 18:03 ` generic Integer for modular type bound Jim Rogers
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox