From: "Rodrigo García" <rodrigo.garcia@epfl.ch>
Subject: Streams and Access types
Date: Wed, 29 Jan 2003 15:09:04 +0100
Date: 2003-01-29T15:09:04+01:00 [thread overview]
Message-ID: <3E37E080.3080608@epfl.ch> (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
next reply other threads:[~2003-01-29 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 14:09 Rodrigo García [this message]
2003-01-29 19:51 ` Streams and Access types Stephen Leake
2003-01-30 20:41 ` Simon Wright
2003-01-30 21:56 ` James S. Rogers
2003-01-31 11:13 ` Rodrigo Garcia
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox