From: "REH" <spamjunk@stny.rr.com>
Subject: Exceptions and Streams
Date: 20 May 2006 09:03:04 -0700
Date: 2006-05-20T09:03:04-07:00 [thread overview]
Message-ID: <1148140984.807366.177480@g10g2000cwb.googlegroups.com> (raw)
I have a stream class that just writes the stream data to an array.
This is used to marsal parameters to make distributed calls in another
address space. I have two questions about streams:
1) Does 11.4.1 (16) of the RM (see below) say that I can stream an
exception occurrance to another address space and re-raise it? Note
that I am not using "partitions" as defined in the Distributed Ada
Annex, but just separate address spaces.
"The implementation of the Write attribute (see 13.13.2) of
Exception_Occurrence shall support writing a representation of an
exception occurrence to a stream; the implementation of the Read
attribute of Exception_Occurrence shall support reconstructing an
exception occurrence from a stream (including one written in a
different partition)."
2) Is there an easy way to determine the number of elements an object
of a given type will write to a stream before hand? I need to know how
big to make the array to hold all a procedures parameters, and I don't
want to have to hard-code things like dupe vector sizes.
Much appreciated,
REH
next reply other threads:[~2006-05-20 16:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-20 16:03 REH [this message]
2006-05-21 20:40 ` Exceptions and Streams Simon Wright
2006-05-22 15:11 ` REH
-- strict thread matches above, loose matches on Subject: below --
1998-10-30 0:00 exceptions and streams Bernd Ragutt
1998-10-31 0:00 ` dewarr
1998-11-02 0:00 ` Bernd Ragutt
1998-11-03 0:00 ` dewar
1998-11-03 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox