comp.lang.ada
 help / color / mirror / Atom feed
* Converting Ada objects to Byte streams, independent of compiler implementation
@ 1989-03-15 20:40 "Jonathan B. Owen"
  0 siblings, 0 replies; only message in thread
From: "Jonathan B. Owen" @ 1989-03-15 20:40 UTC (permalink / 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.
______________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1989-03-15 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-03-15 20:40 Converting Ada objects to Byte streams, independent of compiler implementation "Jonathan B. Owen"

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