comp.lang.ada
 help / color / mirror / Atom feed
From: "R. Tim Coslet" <coslett@kaisere.com>
Subject: Re: Generic packages
Date: 2000/02/16
Date: 2000-02-16T00:00:00+00:00	[thread overview]
Message-ID: <38AAE192.4D51E2C0@kaisere.com> (raw)
In-Reply-To: 38AAAC43.D8862190@mdstud.chalmers.se

Put the Generic package inside a package containing definitions for all
types that the Generic package requires (that aren't defined elsewhere).

Either that or make the Generic package a child of the package containing
the type definitions.

David Olsson wrote:

> If I want to make a generic package with a function as a generic
> parameter to the package, and that function returns a value of a
> specifik enumeration, so where can I define that enumeration. I can't do
> before generic and if I put it between generic and package, than the
> compiler thinks its a generic parameter to package and complains that it
> should be defined as (<>) or something. If I put it after package, then
> it wont be visible for the function. I guess you can put it in a
> seperate ads file, but that isn't pretty in my opinion. Is there another
> way ?
>
> /David







  reply	other threads:[~2000-02-16  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-16  0:00 Generic packages David Olsson
2000-02-16  0:00 ` R. Tim Coslet [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-07-09 13:03 generic packages Sami Evangelista
2002-07-09 13:28 ` Fabien Garcia
2002-07-09 13:41   ` Sami Evangelista
2002-07-10  2:00 ` SteveD
2002-07-11 13:41   ` Sami Evangelista
2002-07-11 20:56     ` Adam Beneschan
2001-04-19 21:27 Generic Packages Eyal Ben-gal
2001-04-19 20:26 ` Ehud Lamm
2001-04-19 22:09 ` Robert A Duff
2001-04-20  6:50   ` Ehud Lamm
1998-08-10  0:00 Tory Patnoe
1998-08-11  0:00 ` Tucker Taft
1998-08-11  0:00 ` Robert I. Eachus
1998-08-12  0:00 ` Dale Stanbrough
1998-08-17  0:00 ` Dr. Hubert B. Keller
1998-08-27  0:00   ` Simon Wright
     [not found] <5e03nm$esq@netty.york.ac.uk>
1997-02-15  0:00 ` Jon S Anthony
1997-02-20  0:00 ` phtruong
1997-02-21  0:00   ` Robert Dewar
1997-02-25  0:00     ` Quorlia
1997-02-27  0:00       ` Robert Dewar
     [not found] <4inq3c$lr9@NNTP.MsState.Edu>
1996-03-22  0:00 ` John Herro
1996-03-22  0:00   ` Samuel Tardieu
replies disabled

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