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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,99210dd26e04d959 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 15 Feb 2011 22:10:05 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110123 Thunderbird/3.1.8 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Loops and parallel execution References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4d5aebac$0$7667$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 15 Feb 2011 22:10:04 CET NNTP-Posting-Host: f22a01a4.newsspool1.arcor-online.net X-Trace: DXC=iommd]YNBd>^cW`WBF>WQ4Fo<]lROoR1<`=YMgDjhg2^ho\<72OWS?PCY\c7>ejV8Oo8A\k1Fc:92YYfT;Zc?^7 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:18262 Date: 2011-02-15T22:10:04+01:00 List-Id: On 2/15/11 12:27 AM, Tuck wrote: > On Wednesday, January 26, 2011 5:47:00 AM UTC-5, Georg Bauhaus wrote: >> Is anything known yet >> about what John Barnes's Integrate example would look like if >> written in idiomatic ParaSail? > > It might look something like this: > > function Integrate( > function Func(X : Floating is Float<>) -> Floating; > Over : Interval) > -> Floating is > ... > end function Integrate; > > ... > > const Result := Integrate(Sin, Over => 0.0 .. Pi/2.0); Thanks, I must have overlooked nested declarations. (Thought that one would have to make passing values explicit; thus using an outer function's argument within another function local to the former would have been ruled out. Doesn't seem so!)