[comp.lang.ada] Converting Ada objects to Byte streams, independent of compiler

GDAU100@BGUVM.BITNET ("Jonathan B. Owen") (03/16/89)

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.
______________________________________________________________________________