comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: Array problem
Date: 25 May 2002 09:38:09 -0700
Date: 2002-05-25T16:38:09+00:00	[thread overview]
Message-ID: <5ee5b646.0205250838.4cd0bfbb@posting.google.com> (raw)
In-Reply-To: yeIH8.39886$n4.8879213@newsc.telia.net

"Andreas Lans" <b99andla@student.his.se> wrote in message news:<yeIH8.39886$n4.8879213@newsc.telia.net>...

> 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.



  parent reply	other threads:[~2002-05-25 16:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24 22:09 Array problem Andreas Lans
2002-05-24 22:31 ` Preben Randhol
2002-05-25  8:49   ` Andreas Lans
2002-05-25 12:12     ` Preben Randhol
2002-05-25 16:30     ` Robert Dewar
2002-05-25 18:00       ` Andreas Lans
2002-05-26  9:09         ` Preben Randhol
2002-05-25 16:38     ` Robert Dewar [this message]
2002-05-25 11:30   ` Robert Dewar
2002-05-27 10:39 ` Alfred Hilscher
replies disabled

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