From: Simon Wright <simon@pushface.org>
Subject: Re: passing parametars as determinants
Date: Wed, 22 Oct 2014 06:22:01 +0100
Date: 2014-10-22T06:22:01+01:00 [thread overview]
Message-ID: <lyvbncd6h2.fsf@pushface.org> (raw)
In-Reply-To: b8496ffe-6cc7-4235-a546-801e14920e95@googlegroups.com
compguy45@gmail.com writes:
> I have task type such as...
>
> task type myTaskType (a: Integer; b: Integer);
>
> I have type.....
>
> type myOtherType is array (1 ..N-1) of String (1..N);
>
> I would like to pass array of myOtherType into my task type
> declaration like this...
>
> task type myTaskType (a: Integer; b: Integer; c : myOtherType); ??
>
> Is there way to do this?
ARM 3.7(1)[1] says "A discriminant of an object is a component of the
object, and is either of a discrete type or an access type."
An array is not a discrete type: but you can use an access-to-array,
task type myTaskType (a: Integer; b: Integer; c : access myOtherType);
[1] http://www.ada-auth.org/standards/12rm/html/RM-3-7.html#p1
next prev parent reply other threads:[~2014-10-22 5:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-22 5:12 passing parametars as determinants compguy45
2014-10-22 5:16 ` compguy45
2014-10-22 5:22 ` Simon Wright [this message]
2014-10-22 11:55 ` compguy45
2014-10-22 12:39 ` Dennis Lee Bieber
2014-10-22 15:57 ` Shark8
2014-10-22 6:11 ` mockturtle
2014-10-22 8:51 ` Georg Bauhaus
2014-10-22 17:25 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox