array of generic packages?

From: a malkiel (malkiel_at_wannet.net)
Date: 09/22/04


Date: Thu, 23 Sep 2004 04:03:11 +1000

hi im somewhat new to ada. i've been trying to nut this one but can't seem
to. Would anyone know if defining an "array of generic packages" is
possible? What im looking for is something of the nature:

type shape_type is (circle, triangle);
package shapePointer(1) is new shape(circle);
package shapePointer(2) is new shape(triangle);

thanks in advance.
ciao, andrew



Relevant Pages