From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cca7136d56d62da4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-21 00:58:27 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!tar-atanamir.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Help Ada basics Date: Wed, 21 Jan 2004 10:05:41 +0100 Message-ID: <74gs00t63mok7dhas0icsldmg7j1d9gcnp@4ax.com> References: <400d56c7$1@news.barak.net.il> NNTP-Posting-Host: tar-atanamir.cbb-automation.de (212.79.194.116) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1074675506 19262067 212.79.194.116 ([77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:4593 Date: 2004-01-21T10:05:41+01:00 List-Id: On Tue, 20 Jan 2004 18:24:22 +0200, "Ratson Janiv" 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