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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,efd17daf0b977cc5 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Problem... Date: 1998/01/20 Message-ID: <34C4E7E0.46E1@gsfc.nasa.gov>#1/1 X-Deja-AN: 317737315 Content-Transfer-Encoding: 7bit References: <6a1jk8$4g3@bgtnsc01.worldnet.att.net> Content-Type: text/plain; charset=us-ascii Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Mime-Version: 1.0 Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1998-01-20T00:00:00+00:00 List-Id: Scott Barrish wrote: > > I have this package and I can't seem to figure out why I am getting thiserror > message in my source code file. > > > with Ada.Text_IO; use Ada.Text_IO; > with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; > with Static_Sort; > > procedure main is > > package Int_Sort_IO is new Static_Sort(Element_Type => integer); > > Int_Sort : Int_Sort_IO.Sort_Type(10); > > begin > > Put_Line("Let's give it a try."); > Int_Sort_IO.Select_Sort(Int_Sort); //This is the line the compiler gies the > error. > > end main; > > Error messageis as follows: > > 151-8.ada: Error: line 7 col 64 LRM:12.3(10), Missing actual parameter for <, > Continuing Um, counting seven lines from the top, the error is on the instantiation of the package: > package Int_Sort_IO is new Static_Sort(Element_Type => integer); not on the line you indicate. The instantiation requires a "<" function, as the error message says. I'd say you need a better editor, that puts the cursor on the error! Emacs does this; I assume AdaGIDE (comes with GNAT on Win95) does, but I'm not sure. -- - Stephe