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,6eac62e4f2badf3a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-07 14:26:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Persistence of limited tagged types Date: 07 Apr 2003 17:14:58 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3E91DCEA.5030006@psu.edu> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1049750979 12227 128.183.235.92 (7 Apr 2003 21:29:39 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 7 Apr 2003 21:29:39 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:35976 Date: 2003-04-07T21:29:39+00:00 List-Id: Robert Spooner writes: > I think that if you use 'output to put the object onto the disk, it > will put the external representation of the tag out with it. Then if > you use 'imput to read it back in as an object of type Object'class > you will get what you're looking for. That is certainly true. The trick is to get an object of type Object'class; it's an unconstrained type, so you can't just do: An_Object : Object'class; In practice, you need to know the concrete object type _before_ you call 'input, so you can allocate (or declare) an object of that type. That means some representation of the tag must be stored in the external file separately from the object, so you can read it first. -- -- Stephe