comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: Help Ada basics
Date: Wed, 21 Jan 2004 10:05:41 +0100
Date: 2004-01-21T10:05:41+01:00	[thread overview]
Message-ID: <74gs00t63mok7dhas0icsldmg7j1d9gcnp@4ax.com> (raw)
In-Reply-To: 400d56c7$1@news.barak.net.il

On Tue, 20 Jan 2004 18:24:22 +0200, "Ratson Janiv" <janiv@013.net.il>
wrote:

>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

My_Automat is a package, not a subtype. The compiler message is quite
precise.

--
Regards,
Dmitry A. Kazakov
www.dmitry-kazakov.de



  reply	other threads:[~2004-01-21  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-20 16:24 Help Ada basics Ratson Janiv
2004-01-21  9:05 ` Dmitry A. Kazakov [this message]
2004-01-22 20:40   ` Mr. J.
2004-01-23  2:57     ` Robert I. Eachus
replies disabled

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