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.3 required=5.0 tests=BAYES_00,INVALID_MSGID,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b8b2de2a45e33b46,start X-Google-Attributes: gid103376,public From: "Joerg Ruedenauer" Subject: Usage of Ada.Streams Date: 2000/01/18 Message-ID: <862lc7$s8a$1@inf2.informatik.uni-stuttgart.de>#1/1 X-Deja-AN: 574397096 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: usenet@news.informatik.uni-stuttgart.de X-Trace: inf2.informatik.uni-stuttgart.de 948230343 28938 129.69.189.41 (18 Jan 2000 21:19:03 GMT) Organization: Fakultaet Informatik, Universitaet Stuttgart, Germany X-MSMail-Priority: Normal NNTP-Posting-Date: 18 Jan 2000 21:19:03 GMT Newsgroups: comp.lang.ada Date: 2000-01-18T21:19:03+00:00 List-Id: Hello there, I don't quite know how to use Ada.Streams to read Objects using dispatching. To be specific, I have a private tagged type, say Data, and want to read/write Objects derived from that type. Writing works fine like this: Data_Pointer: PData; -- an access all Data'class Str: Stream_Access; ... Data'Class'Write(Str, Data.all); But I can't find a solution to read the objects equally nice. From the Ada95 Rationale I gather I should use 'Input and 'Output somehow, but I'm just missing an example. Could anyone help me? Joerg -- "Quoth the raven: Nevermore!" -- E.A.Poe