comp.lang.ada
 help / color / mirror / Atom feed
From: adaworks@netcom.com (AdaWorks)
Subject: Re: Simpler question, create instance of unknown tag
Date: 1996/03/26
Date: 1996-03-26T00:00:00+00:00	[thread overview]
Message-ID: <adaworksDouux7.7FC@netcom.com> (raw)
In-Reply-To: DoHFu8.E2A@world.std.com

Robert A Duff (bobduff@world.std.com) wrote:

: Anyway, I like the above idea.  Now tell me how to support this:

:     X: T'Class;

: It would be nice ;-).

  Yeah, Bob. This is one of the first things one encounters in the
  early stages of learning Ada 95.  

  I have been writing, for some programs, something such as:

         function Get return T'Class;

  and then, for the declaration:

         X : T'Class := Get;

  to ensure compilation.

  The next trick is to decide how to implement function Get. This turns
  out to be quite useful for some situations.

  But then, my guess is that you already do this too.
  
  Richard Riehle
-- 

richard@adaworks.com
AdaWorks Software Engineering
Suite 27
2555 Park Boulevard
Palo Alto, CA 94306
(415) 328-1815
FAX  328-1112




      parent reply	other threads:[~1996-03-26  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 ` Simpler question, create instance of unknown tag Robert Dewar
1996-03-18  0:00   ` 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 [this message]
replies disabled

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