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: 103376,90108ed846e3f1bf X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.posted.plusnet!news.posted.plusnet.POSTED!not-for-mail NNTP-Posting-Date: Fri, 20 Feb 2009 10:57:16 -0600 Newsgroups: comp.lang.ada Followup-To: comp.lang.ada From: Robert_Matthews Subject: Re: Language lawyer question: task activation Date: Fri, 20 Feb 2009 16:57:32 +0000 References: <0Ludnf3mRdnyHgPUnZ2dnUVZ8vGdnZ2d@posted.plusnet> User-Agent: KNode/0.99.01 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-qgXPlsMC5VFqoRqyTpMf+3zyMR7/N+/eRccB4rwbgwmV/0rQ36bUhSXWBmSw9QQylS+4uzXIxRMbZak!tt4uCGOIgtdIEG/NuhUiPIdiQJaiJOewg3a+1/pToqnPFXPCe6YGYddToCmu7KXC1rzu4UPiw4QX!VTu/45roRw== 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.39 Xref: g2news2.google.com comp.lang.ada:4692 Date: 2009-02-20T16:57:32+00:00 List-Id: Robert A Duff wrote: > Robert_Matthews writes: > >>> procedure Do_It (X : TType) is >>> begin >>> X.E1; >>> end Do_It; >>> >>> begin >>> Do_It (Func); >>> end Test; >> >> But isn't there another issue here: task types are limited, therefore >> Func is a constructor function, but in what object does it construct its >> returned value? > > In the formal parameter X of Do_It. > > - Bob So X from Do_It is passed as a hidden parameter to Func, so that X in Func is really whatever X in Do_It actually is - but what is that? I don't see an actual object of type TType in the example code. Calling Do_It with parameter Func seems a bit circular from this viewpoint. Robert