comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Simpler question, create instance of unknown tag
Date: 1996/03/15
Date: 1996-03-15T00:00:00+00:00	[thread overview]
Message-ID: <dewar.826948716@schonberg> (raw)
In-Reply-To: DoBw6H.Lyv@plato.ds.boeing.com

Scott asked:

"  Can one use an Ada.Tags.Tag  value (call it a meta-type)
  and dynamically use it to create a concrete object
   where the new object'Tag = this_tag_value

The compilers definitely can do this (for the Input implementation)
but can us mortals do it?"

No, there is no way to do it, and I have found several times that this
is a minor irritation. For the most part, GNAT translates the stream
attributes into legitimate lower level Ada, but it can't do that for
Input (see GNAT sources for details on the very interesting "kludge"
needed to implement this feature).

It's hard to think of a nice syntax for adding this to the language?





  parent reply	other threads:[~1996-03-15  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-15  0:00 Simpler question, create instance of unknown tag Scott Moody
1996-03-15  0:00 ` Simpler question, create instance of unkno Scott Moody
1996-03-15  0:00 ` Robert Dewar [this message]
1996-03-18  0:00   ` Simpler question, create instance of unknown tag Tucker Taft
     [not found]   ` <4ikbhn$cl6@watnews1.watson.ibm.com>
     [not found]     ` <DoHFu8.E2A@world.std.com>
1996-03-19  0:00       ` Norman H. Cohen
1996-03-19  0:00         ` Robert A Duff
1996-03-26  0:00       ` AdaWorks
replies disabled

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