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,8d1c732147dd383f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-24 10:44:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail From: "Jay Quinn" Newsgroups: comp.lang.ada References: Subject: Re: Problems with assignment X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 24 May 2002 13:44:41 -0400 NNTP-Posting-Host: 138.125.138.142 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1022262283 138.125.138.142 (Fri, 24 May 2002 13:44:43 EDT) NNTP-Posting-Date: Fri, 24 May 2002 13:44:43 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:24664 Date: 2002-05-24T13:44:41-04:00 List-Id: "Andreas Lans" wrote in message news:sNtH8.39758$n4.8847077@newsc.telia.net... > So, the prior problem is solved, but now a new one has come up. Im trying to > get the Get_Random_Female procedure to return a female to be stored in the > temp variable. In short it looks like this.When I try to compile this it > says: Left hand of assignment must not be limited type. Its about the > declaration temp:=Island.Get_Random_Female.Whats the problem?? > > temp : Female; > > temp := Island.Get_Random_Female; > > entry Get_Random_Female(Female : out Server_P) > > when Pairs <= 100 is > > begin > > Female := Females(pairs); > > return; > > end Get_Random_Female; > > When I try this I get the following errors: > > Left hand of assignment must not be limited type > > Accept statement cannot return value Here's a hint: Are you calling a procedure or a function? How are values returned when calling a procedure? How are values returned when calling a function? -- Jay