comp.lang.ada
 help / color / mirror / Atom feed
* Streams and Access types
@ 2003-01-29 14:09 Rodrigo García
  2003-01-29 19:51 ` Stephen Leake
  0 siblings, 1 reply; 5+ messages in thread
From: Rodrigo García @ 2003-01-29 14:09 UTC (permalink / raw)


Hello,

   As it happens with any elementary type, the serialization of access 
types is implementation defined (RM 13.13.2 (9)). However, that means 
that, when an access variable is serialized, it is the value of the 
access variable itself which is serialized, not the object pointed by 
the access variable.

   In GNAT this value is just a memory address. This is not very useful 
if we want to serialize, let's say, a linked list and then store it in 
the hard disk.

   One solution is to do custom serialization but, does anybody knows of 
an Ada compiler that can automatically serialize the objects pointed by 
access variables (recursively if needed, such in the case of the linked 
list)?

   Thanks

Rodrigo




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-31 11:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 14:09 Streams and Access types Rodrigo García
2003-01-29 19:51 ` Stephen Leake
2003-01-30 20:41   ` Simon Wright
2003-01-30 21:56     ` James S. Rogers
2003-01-31 11:13     ` Rodrigo Garcia

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