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=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: passing messages between the tasks Date: Tue, 14 Oct 2014 13:42:55 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <41154c4b-6158-4701-ab25-85afa3b24ed2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 14 Oct 2014 20:42:53 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="206f88a41f45fc94d25d07d064d738e2"; logging-data="32020"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xWXtp7c3TAmjLGA5VvAl4sdLVerNQ434=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: Cancel-Lock: sha1:iKKtglDisE4Bn6w4SqpaT3+j0gc= Xref: number.nntp.giganews.com comp.lang.ada:189781 Date: 2014-10-14T13:42:55-07:00 List-Id: On 10/14/2014 12:43 PM, Shark8 wrote: > > Yes, but you can have two-entries: one returning the length and the second > returning the data, so you could do something like: > > Function Get_String( X : The_Task ) return String is > Length : Natural; > begin > X.Get_Length( Length ); > Return Result : String(1..Length) do > X.Get_Data( Result ); > end return; > end; Or do the Get_Line route, with 2 out parameters. At least familiar, if not great. -- Jeff Carter "If you think you got a nasty taunting this time, you ain't heard nothing yet!" Monty Python and the Holy Grail 23