comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: What is the best method for transmitting objects/tagged records?
Date: Wed, 8 Jun 2011 19:49:42 -0500
Date: 2011-06-08T19:49:42-05:00	[thread overview]
Message-ID: <isp5b8$c3l$1@munin.nbi.dk> (raw)
In-Reply-To: fb72e599-968f-4850-abf7-1ed1fc8e50c3@d1g2000yqm.googlegroups.com

"Shark8" <onewingedshark@gmail.com> wrote in message 
news:fb72e599-968f-4850-abf7-1ed1fc8e50c3@d1g2000yqm.googlegroups.com...
On Jun 7, 1:06 pm, tmo...@acm.org wrote:
>> >> marshalling/unmarshalling part of a Partition Communication Subsystem?
>>
>> >I think that's what it amounts to, yes.
>>
>> Sending an object over a comm link differs from writing to/reading from
>> disk only in timing.
>
>Which is exactly why using tags and streams is a good idea.
>The main problem is that the package that defines the tag-type is not
>WITH-able by packages that are Remote_Types / Remote_Interfaces.
>
>So, even a function that has a parameter-footprint of
>"Procedure ( Tag : In Out Ada.Tags.Tag )" is invalid
>
>(WITH-ing Ada.Streams is fine because it is a Pure package.)

Right, but you don't need to use Ada.Tags (or anything tags) in order to 
stream tagged types. Just use the provided T'Class'Input and T'Class'Output 
attributes. For those to have portable results, you need to specify your 
external tag values for your tagged types (we previously discussed that).

                                            Randy.







  reply	other threads:[~2011-06-09  0:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  0:26 What is the best method for transmitting objects/tagged records? Shark8
2011-06-07  1:11 ` Jeffrey Carter
2011-06-07  1:24   ` Shark8
2011-06-07  2:53     ` tmoran
2011-06-07 14:18       ` Shark8
2011-06-07 18:06         ` tmoran
2011-06-08 23:16           ` Shark8
2011-06-09  0:49             ` Randy Brukardt [this message]
2011-06-09  1:12               ` Shark8
2011-06-09  5:07               ` Simon Wright
2011-06-09 20:55                 ` Randy Brukardt
2011-06-09 20:57                   ` Randy Brukardt
2011-06-09 23:42                     ` tmoran
2011-06-11 16:52                       ` Marco
2011-06-10  7:16                   ` Simon Wright
2011-06-10  9:40                     ` AdaMagica
2011-06-10 13:32                     ` Robert A Duff
2011-06-10 22:06                       ` Simon Wright
2011-06-10 23:05                         ` Robert A Duff
2011-06-07  3:25     ` Randy Brukardt
2011-06-07 14:19       ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox