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 X-Google-Thread: 103376,b777be000a53166 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-30 12:42:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!195.40.4.120.MISMATCH!easynet-quince!easynet.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Streams and Access types Date: 30 Jan 2003 20:41:05 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <3E37E080.3080608@epfl.ch> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1043959324 16548 62.49.19.209 (30 Jan 2003 20:42:04 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 30 Jan 2003 20:42:04 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:33619 Date: 2003-01-30T20:41:05+00:00 List-Id: Stephen Leake writes: > Rodrigo Garc�a writes: > > > 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)? > > This is not possible in general. How would the compiler resolve a > circular list? All doubly-linked lists have circles, so it is a real > problem. Clearly this can be done! Java does it (unless I'm mistaken). You have to keep track of what's been serialized already, I suppose.