comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: Problem with generic package
Date: Tue, 15 Apr 2014 15:03:22 -0700 (PDT)
Date: 2014-04-15T15:03:22-07:00	[thread overview]
Message-ID: <9916e28e-d0e0-41be-9c19-96d82fdbcd9a@googlegroups.com> (raw)
In-Reply-To: <9c505412-8f30-4e1a-9374-a0d8d12f8db0@googlegroups.com>

On Tuesday, April 15, 2014 2:58:23 PM UTC-7, Laurent wrote:
> > You can only instantiate Array_Generics.  Search_Generic is not a generic.
> 
> 
> 
> Hm now that one I don't understand. search_generic was generic before I transformed it into array_generics.  It worked and could be instantiated. Now that it is inside this package it doesn't work anymore? 

Because it's not a generic any more.  I've said this at least twice already, but a generic is something that is declared with the word "generic", and Search_Generic is no longer declared with the word "generic".  Now that Array_Generics is a generic and the procedures are not generic, you can instantiate Array_Generics but you cannot instantiate the procedures.

                               -- Adam


  reply	other threads:[~2014-04-15 22:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 18:26 Problem with generic package Laurent
2014-04-15 19:36 ` Adam Beneschan
2014-04-15 19:44 ` Adam Beneschan
2014-04-15 20:12   ` Laurent
2014-04-15 20:37     ` Adam Beneschan
2014-04-15 20:43     ` Eryndlia Mavourneen
2014-04-15 20:47       ` Eryndlia Mavourneen
2014-04-15 21:28     ` Georg Bauhaus
2014-04-15 20:41 ` Simon Wright
2014-04-15 21:12   ` Laurent
2014-04-15 21:27     ` Adam Beneschan
2014-04-15 21:58       ` Laurent
2014-04-15 22:03         ` Adam Beneschan [this message]
2014-04-16  6:03         ` Georg Bauhaus
2014-04-16 20:37           ` Laurent
2014-04-16 21:13             ` Mike H
2014-04-16 22:31               ` Randy Brukardt
2014-04-16 23:06               ` Jeffrey Carter
2014-04-15 22:14     ` Simon Wright
2014-04-16 18:49       ` Laurent
replies disabled

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