comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: I want 'Class'Input back!
Date: 1999/10/12
Date: 1999-10-12T00:00:00+00:00	[thread overview]
Message-ID: <7u0as6$fmm$1@nnrp1.deja.com> (raw)

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.




             reply	other threads:[~1999-10-12  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-12  0:00 Ted Dennison [this message]
1999-10-12  0:00 ` I want 'Class'Input back! Matthew Heaney
1999-10-13  0:00   ` Ted Dennison
1999-10-18  0:00     ` I want 'Class'Read back! (was: I want 'Class'Read back!) Ted Dennison
     [not found] ` <3814EF36.3D82D483@rational.com>
1999-10-26  0:00   ` I want 'Class'Input back! Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox