comp.lang.ada
 help / color / mirror / Atom feed
From: ratsonjaniv@hotmail.com (Mr. J.)
Subject: generic parameter to generic package
Date: 20 Jan 2004 08:27:30 -0800
Date: 2004-01-20T08:27:30-08:00	[thread overview]
Message-ID: <fc116fae.0401200827.31ac838f@posting.google.com> (raw)

I have the following not compiling code:
============================================
generic

type Language is array (Positive range<>) of Character;

type States is array (Positive range <>) of Integer;


package Automat_Producer is


...

===========================================================

And also :

*************************************************************

with Automat_Producer;

generic

with package My_Automat is new Automat_Producer (<>);


procedure Apply_String(Auto: in My_Automat; S:String);

*******************************************************************

What M I doing wrong ?

Compiler error:

apply_string.ads:6:33: subtype mark required in this context

apply_string.ads:6:33: found "My_Automat" declared at line 4



10x,

J.



             reply	other threads:[~2004-01-20 16:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-20 16:27 Mr. J. [this message]
2004-01-20 16:47 ` generic parameter to generic package Robert I. Eachus
2004-01-20 17:55 ` Jeffrey Carter
replies disabled

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