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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,36a29c2860aff686 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k30g2000vbn.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: Properties Date: Mon, 6 Dec 2010 15:25:23 -0800 (PST) Organization: http://groups.google.com Message-ID: <9c5c41d1-ce2c-49fe-acb4-d30103c72de5@k30g2000vbn.googlegroups.com> References: <3b84c8e7-1a51-4a7c-9646-119f1fc51478@s4g2000yql.googlegroups.com> <4pnv7nl4cdui$.1n28i7lqk4mek$.dlg@40tude.net> <1k7367gtebsgm$.18auo6u3nfg34.dlg@40tude.net> <1u5dftkqqi68c.10079qnqyyfwb$.dlg@40tude.net> <15tv4yga36dpi$.1hc09dlbgcmqe.dlg@40tude.net> <18768dde-5817-40b9-aaa1-03c620ad7187@i32g2000pri.googlegroups.com> <18f98563-340c-4bc2-83e5-8d1187f92165@j19g2000prh.googlegroups.com> <20%Ko.322$uO2.303@newsfe02.iad> NNTP-Posting-Host: 174.28.191.40 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1291677923 2753 127.0.0.1 (6 Dec 2010 23:25:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 6 Dec 2010 23:25:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k30g2000vbn.googlegroups.com; posting-host=174.28.191.40; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:16798 Date: 2010-12-06T15:25:23-08:00 List-Id: On Dec 5, 11:02=A0pm, Brad Moore wrote: > On 03/12/2010 4:34 PM, Jeffrey Carter wrote: > > > On 12/02/2010 10:00 PM, Shark8 wrote: > > >> Type Task_Array is Array (1..20) of Access Writer; > >> Tasks : Task_Array:=3D ( 1..20 =3D> New Writer'(Make_Task) ); > > > Access is not needed here. You can (and probably should) do something l= ike > > > type Writer_List is array (Positive range <>) of Writer; > > > Writers : constant Writer_List :=3D (1 .. 20 =3D> Make_Writer); > > Note that for this to compile, you end up needing to make the task > discriminant mutable, since the task type in the array type declaration > need to be constrained. > > Sonmething like; > > =A0 =A0 task type Writer (ID : Integer :=3D 0) is > =A0 =A0 end Writer; Ah, Thanks!