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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f813b1b9c8de30d6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-08 11:00:15 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Getting a one-touch option (was: Ada95 tutorials with sample code) Date: Thu, 8 Mar 2001 13:49:10 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <988k89$k5n$1@nh.pace.co.uk> References: NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 984077385 20663 136.170.200.133 (8 Mar 2001 18:49:45 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 8 Mar 2001 18:49:45 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5549 Date: 2001-03-08T18:49:45+00:00 List-Id: Check your declaration of find_volume and make sure it matches the usage. Its possible that you don't have find_volume visible or that the parameters or return type are incorrect. The problem is that a function call can look identical to an array reference syntactically. The compiler can't tell the difference in the absence of other information. If you missed the declaration entirely (or it isn't visible) you might get this error. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "mcdoobie" wrote in message news:eWPp6.37842$W05.7762543@news1.rdc1.mi.home.com... > The whole use of types in Ada has kinda got me confused. > > For example... > > the_volume := find_volume( aLength, aWidth, aHeight); > > Gives me the error message on compile ... > > "array type required in indexed component" > > This is NOT an array, it's a function call. > > Heh, I guess I'll be hitting the books again. > > Exceptions are something I plan on playing with soon. As soon as I got > all the basics worked out. > > McDoobie > > Thanks.