comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Tags.Internal_Tag(String'Input(Stream)) ??
Date: Thu, 28 Dec 2000 06:19:36 GMT
Date: 2000-12-28T06:19:36+00:00	[thread overview]
Message-ID: <YXA26.48921$A06.1438765@news1.frmt1.sfba.home.com> (raw)
In-Reply-To: 3A4AC329.9C2A311A@home.com

> <br>instead. This would allow me to read the tag in, in any way I
> <br>please, but then how do I proceed from there? How does the
> <br>Ada S'Class'Input() dispatch once the external tag is known?

  Is something along this line what you are looking for?

 function Get return S'class is
 begin
   get_external_type_indicator;
   case external_type_indicator is
     when A =>
       declare
         Result : S_Child_A;
       begin
         get_A_stuff_into_Result;
         return Result;
       end;
     when B =>
       declare
         Result : S_Child_B;
       begin
         get_B_stuff_into_Result;
         return Result;
       end;
   end case;
 end Get;



       reply	other threads:[~2000-12-28  6:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A4AC329.9C2A311A@home.com>
2000-12-28  6:19 ` tmoran [this message]
2000-12-28 15:06   ` Tags.Internal_Tag(String'Input(Stream)) ?? Warren W. Gay VE3WWG
2000-12-28 15:02 ` In Plain Text: " Warren W. Gay VE3WWG
2000-12-28 15:54   ` Ted Dennison
2000-12-28 18:32     ` Warren W. Gay VE3WWG
2000-12-28 19:44       ` Ted Dennison
2000-12-29  2:20         ` Warren W. Gay VE3WWG
2000-12-29  3:20           ` tmoran
2000-12-29  3:04   ` tmoran
2000-12-29  5:29     ` Ada0x Enhancement? Was: " Warren W. Gay VE3WWG
2000-12-29  7:11       ` tmoran
2000-12-29 14:32         ` Warren W. Gay VE3WWG
2000-12-30  5:55       ` External_Tag: Why? was " tmoran
2000-12-31 22:17         ` Randy Brukardt
2001-01-01 16:50           ` Warren W. Gay VE3WWG
replies disabled

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