From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b777be000a53166,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-29 06:09:11 PST Message-ID: <3E37E080.3080608@epfl.ch> Date: Wed, 29 Jan 2003 15:09:04 +0100 From: =?ISO-8859-1?Q?Rodrigo_Garc=EDa?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Streams and Access types Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch X-Trace: epflnews.epfl.ch 1043849346 128.178.76.8 (29 Jan 2003 15:09:06 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!uni-erlangen.de!news.imp.ch!news.imp.ch!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:33555 Date: 2003-01-29T15:09:04+01:00 List-Id: 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