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 Path: g2news2.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!xlned.com!feeder7.xlned.com!hitnews.eu!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 30 Oct 2010 01:25:31 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: initialize an array (1-D) at elaboration using an expression based on the index? Date: Sat, 30 Oct 2010 07:34:46 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: <2penc6lgsop1583vmg9i0m429ri4ajaf9n@4ax.com> References: <1f6bad81-e3d2-428b-a1a0-45acc7f96f68@m7g2000yqm.googlegroups.com> <9df4e5eb-fba7-4e8c-ba44-cd1ad4081d3b@26g2000yqv.googlegroups.com> <985a178c-8dfc-48af-9871-76a64750a571@l14g2000yqb.googlegroups.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-G9puCEuxqHCGDiUN2VL/W+2FUwN5ymgODtBk23dpVeOLgWJ1pf8tNauOqC7ZGtrGOe4OZ82F7j29urW!7kyeXMOauz4BZjyqmf/nQBx+8fHXRE09Mzu1Rf41nrJfcdTrPae7ECV6JYx4oFQhQp/2HPKrCrAu!fCmw X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2656 Xref: g2news2.google.com comp.lang.ada:15930 Date: 2010-10-30T07:34:46+01:00 List-Id: On Sun, 24 Oct 2010 19:23:11 -0700 (PDT), Shark8 wrote: >On Oct 24, 4:48�pm, Phil Clayton wrote: >> ... �With that view, it >> seems a fairly simple extension to the language from a technical >> perspective. >> >> Phil > >True enough; however just because something is easy (or *CAN* be done) >doesn't make it the right thing. >The C/C++ allowance of assignments within the conditional-test is a >good example of something that *CAN* be done that shouldn't be. >The syntax of the proposed (for ... ) construct simply look _wrong_ to >me, like a human-knee bending backward. While I wholeheartedly agree with the above ... > {I think the same about the >new conditional expressions too, they simply go against the grain of >the rest of the language IMO.} ... having been raised on Algol-W I am delighted to see them come back. Is it their unfamiliarity that disturbs you? They don't appear to have the same possibility for disaster as your C example, and have been around in some form in VHDL for decades. (In the combinatorial/parallel part of the language. VHDL2008 reintroduces them to the sequential part, inside processes) - Brian