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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a31acccf6053ab1b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-25 09:38:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Array problem Date: 25 May 2002 09:38:09 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205250838.4cd0bfbb@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022344689 29974 127.0.0.1 (25 May 2002 16:38:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 May 2002 16:38:09 GMT Xref: archiver1.google.com comp.lang.ada:24772 Date: 2002-05-25T16:38:09+00:00 List-Id: "Andreas Lans" wrote in message news:... > Well, I tried the thing you tipped me about, and I also > tried just to put a > one in there just to see if it would work, but it still > says Illegal operand > for array conversion, any thoughts on this? If you see a message like this, approach it systematically. There are two cases, either you intended an array conversion or you did not intend it. Clearly the compiler thinks you intended it. Either way, you need to find out by reading your text book what an array conversion looks like (not hard since it is the same as any other type conversion). Now if you did not intend an array conversion, then figure out what you did intend clearly, and look up how to achieve it (if you guessed, you obviously guessed wrong). If you DID intend an array conversion, then look up the rules to see why this operand is not legal for an array conversion. That's the sort of way to approach figuring out something like this on your own. You may well find it helpful to run one of the online tutorials if you are feeling generally confused by what you are doing.