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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!BGUVM.BITNET!GDAU100 From: GDAU100@BGUVM.BITNET ("Jonathan B. Owen") Newsgroups: comp.lang.ada Subject: Converting Ada objects to Byte streams, independent of compiler implementation Message-ID: <8903152035.AA10641@ajpo.sei.cmu.edu> Date: 15 Mar 89 20:40:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet X-Unparsable-Date: Wed, 15 Mar 89 22:14:21 IST List-Id: I am probably not the first nor the last to pounder this problem. Data residing in all kinds of ada types need to be converted to byte streams in order to be transfered via a communication service to another computer and then converted back to their original types. Using uncheck conversion on static records (i.e. without discriminants) work fine, if used with representation clauses. What happends with unconstrained types? Some implementations will convert all storage allocated for the object, even if not part of "current" value. Also, using 'SIZE is not recomended, as far as I understand, for creating non-dependent implementation software when it comes to communicating between two different computers. Hope I made myself clear. Any points are very welcome... :-) Jonathan B. Owen ______________________________________________________________________________ (--) /--) /-(\ Email: gdau100@bguvm (bitnet) \ / /--K | \|/\ /\/) /|-\ Snail: 55 Hovevei Zion _/_/o /L__)_/o \/\__/ \X/ \_/ | |_/ Tel-Aviv, 63346 ISRAEL (/ Jonathan B. Owen Voice: (03) 281-422 Point of view: A chicken is the means by which an egg reproduces an egg. ______________________________________________________________________________