comp.lang.ada
 help / color / mirror / Atom feed
From: "Sébastien Morand" <seb.morand@gmail.com>
Subject: Re: Generic warning
Date: Wed, 18 Jun 2008 14:32:28 +0000
Date: 2008-06-18T14:32:28+00:00	[thread overview]
Message-ID: <48591C7C.8050304@gmail.com> (raw)
In-Reply-To: <626i5415pe8s2jekhij85k4algrh9i1jfo@4ax.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> (Newbie qiestion, coming from VHDL, halfway through the Barnes book)
> 
> Can you not create a subtype of Positive to reflect that, and declare
> both the array and index using that subtype?

I can't create a subtype using a parameter.

generic
	Order: Positive;
package Test is
	--  Can't work since Order is not defined at compile time
	type MyType is range 1 .. Order;
End Test;

Sebastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIWRx8+zV9xm4PlDQRAlB6AJ9darSe1+aMBg1YbbUbilg8mZZ79wCdE/kY
bF8Rs7+gGRERMktKnmwp080=
=wYbq
-----END PGP SIGNATURE-----



  reply	other threads:[~2008-06-18 14:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 16:44 Generic warning Sébastien Morand
2008-06-17 17:17 ` Dmitry A. Kazakov
2008-06-17 18:33   ` Sébastien Morand
2008-06-17 19:04     ` Dmitry A. Kazakov
2008-06-18  8:41       ` Sébastien Morand
2008-06-18 14:16         ` Brian Drummond
2008-06-18 14:32           ` Sébastien Morand [this message]
2008-06-18 14:39             ` Ed Falis
2008-06-18 14:42             ` Dmitry A. Kazakov
2008-06-18 15:10               ` Robert A Duff
2008-06-18 15:25                 ` Dmitry A. Kazakov
2008-06-18 15:38                   ` Ed Falis
2008-06-18 17:04                     ` Dmitry A. Kazakov
2008-06-17 18:20 ` Jeffrey R. Carter
2008-06-18  8:55   ` Sébastien Morand
replies disabled

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