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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7c81785cd4fb3cb,start X-Google-Attributes: gid103376,public From: Ted Dennison Subject: I want 'Class'Input back! Date: 1999/10/12 Message-ID: <7u0as6$fmm$1@nnrp1.deja.com>#1/1 X-Deja-AN: 535946945 X-Http-Proxy: 1.0 bx6.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Oct 12 21:57:33 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-10-12T00:00:00+00:00 List-Id: I'm experimenting with making a private type limited. Unfortunately doing this toasts the default definitions for the stream attributes for that type. But I *liked* the default definitions for the stream attributes. In fact, I need 'Input, 'Output, 'Class'Input, and 'Class'Output. So just write my own clones of those attributes, then do a "for typename'{Attribute} use", right? Well, the problem is I can't figure out is how to (re)make 'Class'Input myself. Its definition from the LRM is: First reads the external tag from Stream and determines the corresponding internal tag (by calling Tags.Internal_Tag(String'Input(Stream)) -- see 3.9) and then dispatches to the subprogram denoted by the Input attribute of the specific type identified by the internal tag; returns that result. So how do I write Ada code to do this? I hope I'm missing something simple. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.