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,30821ecf97416798 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-04 10:06:11 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rtcoslet@rockwellcollins.com (R. Tim Coslet) Newsgroups: comp.lang.ada Subject: Re: How Can I Create A Class Dynamically Date: 4 Oct 2001 10:06:10 -0700 Organization: http://groups.google.com/ Message-ID: References: <1bJr7.11813$po4.573186@e420r-atl1.usenetserver.com> NNTP-Posting-Host: 205.175.225.23 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1002215171 25293 127.0.0.1 (4 Oct 2001 17:06:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Oct 2001 17:06:11 GMT Xref: archiver1.google.com comp.lang.ada:13726 Date: 2001-10-04T17:06:11+00:00 List-Id: lutz@iks-jena.de (Lutz Donnerhacke) wrote in message news:... > * R. Tim Coslet wrote: > >lutz@iks-jena.de (Lutz Donnerhacke) wrote in message news:... > > > >Have you looked at the package Ada.Streams.Stream_IO ? > > > >This package was designed specifically to allow input/output of tagged > >types (the file is NOT a text file however). > > I wonder if Stream_IO is able to read instances of derivated types unknown > at the compile time of the programm. I'd look at the Objective-* Code. No, all types must have been defined at compile time or there is no internal representation for the Stream representation and Stream_IO will raise Constraint_Error. If the types were not defined at compile time and Stream_IO accepted them, the program would not know how to work with the objects... all operators of a 'Class are defined at compile time.