comp.lang.ada
 help / color / mirror / Atom feed
From: GDAU100@BGUVM.BITNET ("Jonathan B. Owen")
Subject: Converting Ada objects to Byte streams, independent of compiler implementation
Date: 15 Mar 89 20:40:30 GMT	[thread overview]
Message-ID: <8903152035.AA10641@ajpo.sei.cmu.edu> (raw)

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

                 reply	other threads:[~1989-03-15 20:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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