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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d00514eb0749375b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!feeder.news-service.com!feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: initialize an array (1-D) at elaboration using an expression based on the index? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4b8f7f06-a817-4545-9fc6-67740c67b9d3@a4g2000prm.googlegroups.com> <4cdaad27$0$6979$9b4e6d93@newsspool4.arcor-online.net> <82e746ff-a4eb-4570-8016-78930977def1@35g2000prb.googlegroups.com> Date: Wed, 10 Nov 2010 18:19:32 +0100 Message-ID: <1bhkz50152v96.1itqfwsig2md.dlg@40tude.net> NNTP-Posting-Date: 10 Nov 2010 18:19:32 CET NNTP-Posting-Host: 4437e946.newsspool1.arcor-online.net X-Trace: DXC=E5dhI:Kj<:0^8FBo0_81f>ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2m5^1PnP`4Z6[6LHn;2LCV>[ On Wed, 10 Nov 2010 07:51:07 -0800 (PST), Adam Beneschan wrote: > This seems like an orthogonal problem. That is, it's a problem even > when arrays aren't involved. If you have a record that contains a > task---say you want to create a linked list: > > type Rec; > type Rec_P is access all Rec; > type Rec is record > Job : T; -- T is defined with a discriminant > Link : Rec_P; > end record; But this is illegal if T has discriminants, they must be given for Job. (And task components do not work in Ada anyway) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de