From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: passing messages between the tasks
Date: Tue, 14 Oct 2014 13:43:43 -0600
Date: 2014-10-14T13:43:43-06:00 [thread overview]
Message-ID: <X1f%v.438333$1s.413373@fx05.iad> (raw)
In-Reply-To: <41154c4b-6158-4701-ab25-85afa3b24ed2@googlegroups.com>
On 10/13/2014 7:49 PM, Adam Beneschan wrote:
> For a String, the problems with using a String as an OUT parameter
> are the same as for procedures--you can't really return a variable-
> length string this way.
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;
next prev parent reply other threads:[~2014-10-14 19:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-14 1:17 passing messages between the tasks compguy45
2014-10-14 1:49 ` Adam Beneschan
2014-10-14 1:55 ` compguy45
2014-10-14 2:09 ` compguy45
2014-10-14 2:14 ` Adam Beneschan
2014-10-14 2:15 ` compguy45
2014-10-14 7:36 ` mockturtle
2014-10-14 15:30 ` compguy45
2014-10-14 16:25 ` mockturtle
2014-10-14 20:33 ` Shark8
2014-10-14 19:43 ` Shark8 [this message]
2014-10-14 20:42 ` Jeffrey Carter
2014-10-14 21:08 ` compguy45
2014-10-14 21:58 ` compguy45
2014-10-14 23:03 ` Jeffrey Carter
2014-10-14 22:22 ` Shark8
2014-10-14 23:49 ` Dennis Lee Bieber
2014-10-15 1:07 ` Dennis Lee Bieber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox