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,FREEMAIL_FROM, T_HK_NAME_FM_MR_MRS 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-22 12:40:11 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ratsonjaniv@hotmail.com (Mr. J.) Newsgroups: comp.lang.ada Subject: Re: Help Ada basics Date: 22 Jan 2004 12:40:10 -0800 Organization: http://groups.google.com Message-ID: References: <400d56c7$1@news.barak.net.il> <74gs00t63mok7dhas0icsldmg7j1d9gcnp@4ax.com> NNTP-Posting-Host: 82.166.191.167 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1074804011 2196 127.0.0.1 (22 Jan 2004 20:40:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Jan 2004 20:40:11 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:4678 Date: 2004-01-22T12:40:10-08:00 List-Id: So what is the right syntax ? 10x, J. Dmitry A. Kazakov wrote in message news:<74gs00t63mok7dhas0icsldmg7j1d9gcnp@4ax.com>... > 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.