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.8 required=5.0 tests=BAYES_00,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6eac62e4f2badf3a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-07 05:47:11 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!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!212.97.175.23!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Persistence of limited tagged types Date: Mon, 7 Apr 2003 14:47:36 +0200 Message-ID: NNTP-Posting-Host: 212.97.175.23 X-Trace: fu-berlin.de 1049719630 8715359 212.97.175.23 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:35964 Date: 2003-04-07T14:47:36+02:00 List-Id: Hello, I've read several past threads about this, but to reassure me I want to bring it back again, or at least to know the typical workaround. I have a heterogeneous collection by means of class wide access types, where the accessed types itself are descendants of a type Object is abstract tagged limited private; These objects are kind of state-dependent, and I have an abstract method which serializes an Object to disk. So far, so good. The problem comes when I want to reconstruct the collection from disk. I can't think of a mean to obtain a valid allocated pointer initialized with some dispatching call. A neat solution could be a function that returned an allocated pointer given a tag, but AFAIK there is not such a function. I think that my only option is to make the type non-limited and couple it somehow with the limited components. It's not a so hard change at this stage, but I'd be glad to know other people takes on this problem. Thanks, -- ------------------------- Jano 402450.at.cepsz.unizar.es -------------------------